channel topic fix
This commit is contained in:
parent
ac5da8dd27
commit
25c616b99b
1 changed files with 2 additions and 1 deletions
|
|
@ -131,8 +131,9 @@ class ChatGPT(commands.Cog):
|
|||
help="Set the channel topic for the bot. Usage: !topic (topic)",
|
||||
brief="Set channel topic"
|
||||
)
|
||||
async def topic(self, ctx, channel_topic=None):
|
||||
async def topic(self, ctx, *channel_topic):
|
||||
if channel_topic:
|
||||
channel_topic = ' '.join(channel_topic)
|
||||
self.edit_channel_config(ctx.channel.id, "channel_topic", channel_topic)
|
||||
await ctx.send(f"Topic changed to {channel_topic}")
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue