add method to change a channel's topic

This commit is contained in:
Luke Robles 2022-09-15 09:30:13 -07:00
parent 4e3311a6a0
commit 225b3252b4

View File

@ -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))