rewrite: Add raw interaction data to cmd log.

This commit is contained in:
2023-05-25 19:39:51 +03:00
parent d36ffedd70
commit 0f1c534ae2

View File

@@ -108,7 +108,7 @@ class LionBot(Bot):
logger.info( logger.info(
f"Executing command '{ctx.command.qualified_name}' " f"Executing command '{ctx.command.qualified_name}' "
f"(from module '{ctx.cog.qualified_name if ctx.cog else 'None'}') " f"(from module '{ctx.cog.qualified_name if ctx.cog else 'None'}') "
f"with arguments {ctx.args} and kwargs {ctx.kwargs}.", f"with interaction: {ctx.interaction.data if ctx.interaction else None}",
extra={'with_ctx': True} extra={'with_ctx': True}
) )