fix (analytics): Use qualified cmd name.

This commit is contained in:
2023-08-22 22:18:10 +03:00
parent b5fad27c4f
commit 6b474f33aa

View File

@@ -110,7 +110,7 @@ class Analytics(LionCog):
duration = utc_now() - ctx.message.created_at
event = CommandEvent(
appname=appname,
cmdname=ctx.command.name if ctx.command else 'Unknown', # TODO: qualified_name
cmdname=ctx.command.qualified_name if ctx.command else 'Unknown',
cogname=ctx.cog.qualified_name if ctx.cog else None,
userid=ctx.author.id,
created_at=utc_now(),