Skip to content

Commit 1f26f68

Browse files
authored
Fix command check
1 parent fe45f61 commit 1f26f68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord/ext/commands/cog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,4 @@ def get_commands(self) -> List[Union[ApplicationCommand, Command]]:
7979
8080
This does not include subcommands.
8181
"""
82-
return [c for c in self.__cog_commands__ if isinstance(c, (ApplicationCommand, Command)) and c.parent is None]
82+
return [c for c in self.__cog_commands__ if c.parent is None]

0 commit comments

Comments
 (0)