changed name of command
This commit is contained in:
parent
83bb0cdc6c
commit
e226407be0
@ -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
|
||||
|
||||
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user