changed name of command

This commit is contained in:
Fadi Atamny 2020-05-03 13:26:45 +03:00
parent 83bb0cdc6c
commit e226407be0
2 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ In order to use our cog you would need to install it onto your instance of [RedB
### Commands ### Commands
- `[PREFIX]welcomepreview` - sends in the chat a preview of the template message - `[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]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]stats` - prints the statistics that the cog has gathered.
- `[PREFIX]resetstats` - allows for a hard reset of the stats - `[PREFIX]resetstats` - allows for a hard reset of the stats
- `[PREFIX]toggleLogs` - Toggles the logs functionality on or off - `[PREFIX]toggleLogs` - Toggles the logs functionality on or off

View File

@ -92,9 +92,9 @@ class WelcomeCog(commands.Cog):
except(): except():
print(f'Error Occured!') 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) @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() await ctx.trigger_typing()
if not channel in ctx.guild.channels: if not channel in ctx.guild.channels: