From beb2bc2715c069395e6607686ac121429100df07 Mon Sep 17 00:00:00 2001 From: Luke Robles <98352913+lrobles-iterable@users.noreply.github.com> Date: Thu, 15 Sep 2022 09:30:13 -0700 Subject: [PATCH] add method to change a channel's topic --- app/cogs/server_utils.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/cogs/server_utils.py b/app/cogs/server_utils.py index 7fff4df5..d21492b8 100644 --- a/app/cogs/server_utils.py +++ b/app/cogs/server_utils.py @@ -228,6 +228,13 @@ class ServerUtils(commands.Cog): else: await ctx.reply(embed=help_methods.get_help_embed(self.bot)) + @commands.command(name="topic") + async def topic(self, ctx: commands.Context, *, new_channel_topic): + if ctx.message.author.id != 144986109804412928: + return + await ctx.message.delete() + await ctx.message.channel.edit(topic=new_channel_topic) + def setup(bot): bot.add_cog(ServerUtils(bot))