From e226407be006d317fa34231a24f450a0a7860c03 Mon Sep 17 00:00:00 2001 From: Fadi Atamny Date: Sun, 3 May 2020 13:26:45 +0300 Subject: [PATCH] changed name of command --- welcomeCog/README.md | 2 +- welcomeCog/welcome.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/welcomeCog/README.md b/welcomeCog/README.md index 6f0903d..27d8dfd 100644 --- a/welcomeCog/README.md +++ b/welcomeCog/README.md @@ -28,7 +28,7 @@ In order to use our cog you would need to install it onto your instance of [RedB ### Commands - `[PREFIX]welcomepreview` - sends in the chat a preview of the template message - `[PREFIX]pullmessage` - allows you to pull the latest version of your message without restarting the bot -- `[PREFIX]channel` - allows you to select a channel in your discord to dump logs to +- `[PREFIX]setchannel` - allows you to select a channel in your discord to dump logs to - `[PREFIX]stats` - prints the statistics that the cog has gathered. - `[PREFIX]resetstats` - allows for a hard reset of the stats - `[PREFIX]toggleLogs` - Toggles the logs functionality on or off diff --git a/welcomeCog/welcome.py b/welcomeCog/welcome.py index f4b3e0b..c7dbb05 100644 --- a/welcomeCog/welcome.py +++ b/welcomeCog/welcome.py @@ -92,9 +92,9 @@ class WelcomeCog(commands.Cog): except(): print(f'Error Occured!') - @commands.command(name='channel', description='Sets the channel to sends log to') + @commands.command(name='setchannel', description='Sets the channel to sends log to') @commands.has_any_role(*admin_roles) - async def logChannel(self, ctx: commands.Context, channel: discord.TextChannel) -> None: + async def setChannel(self, ctx: commands.Context, channel: discord.TextChannel) -> None: await ctx.trigger_typing() if not channel in ctx.guild.channels: