Skip to content

Commit

Permalink
Fix GroupMixin.all_commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorukyum authored and Lulalaby committed Jan 21, 2022
1 parent b40a4bc commit 63fb2b0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions discord/ext/commands/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1174,8 +1174,10 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
@property
def all_commands(self):
# merge app and prefixed commands
return {**self._application_commands, **self.prefixed_commands}

if hasattr(self, "_application_commands"):
return {**self._application_commands, **self.prefixed_commands}
return self.prefixed_commands

@property
def commands(self) -> Set[Command[CogT, Any, Any]]:
"""Set[:class:`.Command`]: A unique set of commands without aliases that are registered."""
Expand Down

0 comments on commit 63fb2b0

Please sign in to comment.