add method to change a channel's topic
This commit is contained in:
parent
0abd1b292c
commit
beb2bc2715
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user