changed name of method
This commit is contained in:
parent
288cb0efa4
commit
87a8c59162
@ -22,7 +22,7 @@ In order to use our cog you would need to install it onto your instance of [RedB
|
||||
- `[PREFIX]load trafficTrackerCog`
|
||||
|
||||
### Commands
|
||||
- `[PREFIX]setchannel` - allows you to select a channel in your discord to dump logs to
|
||||
- `[PREFIX]settrafficchannel` - 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
|
||||
|
||||
@ -26,9 +26,9 @@ class TrafficTracker(commands.Cog):
|
||||
self.dailyLeftCount = 0
|
||||
self.date = datetime.now()
|
||||
|
||||
@commands.command(name='setchannel', description='Sets the channel to sends log to')
|
||||
@commands.command(name='settrafficchannel', description='Sets the channel to sends log to')
|
||||
@commands.has_any_role(*admin_roles)
|
||||
async def setChannel(self, ctx: commands.Context, channel: discord.TextChannel) -> None:
|
||||
async def setTrafficChannel(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