Skip to content

Instantly share code, notes, and snippets.

@DiscordLinuxBot
Created April 10, 2021 23:12
Show Gist options
  • Save DiscordLinuxBot/b5a1504824224680ed9c155990f54291 to your computer and use it in GitHub Desktop.
Save DiscordLinuxBot/b5a1504824224680ed9c155990f54291 to your computer and use it in GitHub Desktop.
channeltopic.t.bbtag
{if;{commandname};!=;_autoresponse_1;
{exec;prefix.test}}
{function;help;{embed;{embedbuild;
title:Help for {exec;commandname;topic};
color:yellow;
description:Get the topic for a channel.;}}}
{//;Default}
{if;{lower;{args}};==;help;{func.help};
{switch;{exec;chanid;{args;0}};
{channels};{set;~chan;{exec;chanid;{args;0}}};
{set;~chan;{channelid}}}
{output;{embed;{embedbuild;
color:{exec;blurple};
thumbnail.url:{regexreplace;{guildicon};/(\?size=512)/;?size=40};
description:**Topic for <#{get;~chan}>**
{jget;{exec;_chaninfo;{get;~chan}};topic};}}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment