Skip to content

Commit

Permalink
Logging
Browse files Browse the repository at this point in the history
  • Loading branch information
paris-ci committed Apr 29, 2024
1 parent 45cbe51 commit b1c4776
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/cogs/ducks_hunting_commands.py
Expand Up @@ -713,7 +713,7 @@ async def reload(self, ctx: MyContext):
},
},
{
"command": "inv use",
"command": "inventory use",
"command_args": "mags",
"button_kwargs": {
"label": "Use a magazine (from your inventory)",
Expand Down
7 changes: 5 additions & 2 deletions src/utils/views.py
Expand Up @@ -137,10 +137,13 @@ async def callback(self, interaction: Interaction):
return

if can_run:
args = await self.get_command_args(interaction)
kwargs = await self.get_command_kwargs(interaction)
ctx.logger.info(f"btn->command invoke {self.command.qualified_name} *{args} **{kwargs}")
return await ctx.invoke(
self.command,
*await self.get_command_args(interaction),
**await self.get_command_kwargs(interaction),
*args,
**kwargs,
)


Expand Down

0 comments on commit b1c4776

Please sign in to comment.