Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion interactions/api/gateway/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,6 @@ def _dispatch_interaction_event(self, data: dict) -> None:
_option = self.__sub_command_context(option, _context)
__kwargs.update(_option)

self._dispatch.dispatch("on_command", _context)
elif data["type"] == InteractionType.MESSAGE_COMPONENT:
_name = f"component_{_context.data.custom_id}"

Expand Down
2 changes: 2 additions & 0 deletions interactions/client/models/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,8 @@ async def wrapper(ctx: "CommandContext", *args, **kwargs):
ctx.command = self
ctx.extension = self.extension

self.listener.dispatch("on_command", ctx)

try:
if self.extension:
return await coro(self.extension, ctx, *args, **kwargs)
Expand Down