📝 Better logging of on_slash_command

Logs the entire command now
This commit is contained in:
NikolajDanger
2021-04-02 23:46:04 +02:00
parent 3a9c2b7e16
commit 8369ab0000
2 changed files with 11 additions and 2 deletions

View File

@ -13,8 +13,7 @@ class EventCog(commands.Cog):
# Logs when user sends a command
@commands.Cog.listener()
async def on_slash_command(self, ctx):
logMessage = f"{ctx.author.display_name} ran /{ctx.name}"
self.bot.log(logMessage, str(ctx.channel_id), level = 25)
await self.bot.eventHandler.on_slash_command(ctx)
# Logs if a command experiences an error
@commands.Cog.listener()