fix(meta): Repair issues from dpy update.

This commit is contained in:
2025-06-06 22:24:28 +10:00
parent 8421c5359d
commit d271248812
2 changed files with 2 additions and 2 deletions

View File

@@ -203,7 +203,7 @@ class LionBot(Bot):
# TODO: Some of these could have more user-feedback # TODO: Some of these could have more user-feedback
logger.debug(f"Handling command error for {ctx}: {exception}") logger.debug(f"Handling command error for {ctx}: {exception}")
if isinstance(ctx.command, HybridCommand) and ctx.command.app_command: if isinstance(ctx.command, HybridCommand) and ctx.command.app_command:
cmd_str = ctx.command.app_command.to_dict() cmd_str = ctx.command.app_command.to_dict(self.tree)
else: else:
cmd_str = str(ctx.command) cmd_str = str(ctx.command)
try: try:

View File

@@ -133,7 +133,7 @@ class LionTree(CommandTree):
return return
set_logging_context(action=f"Run {command.qualified_name}") set_logging_context(action=f"Run {command.qualified_name}")
logger.debug(f"Running command '{command.qualified_name}': {command.to_dict()}") logger.debug(f"Running command '{command.qualified_name}': {command.to_dict(self)}")
try: try:
await command._invoke_with_namespace(interaction, namespace) await command._invoke_with_namespace(interaction, namespace)
except AppCommandError as e: except AppCommandError as e: