📝 Better logging of on_slash_command
Logs the entire command now
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user