We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00526f7 commit da8d82cCopy full SHA for da8d82c
discord/cog.py
@@ -247,16 +247,7 @@ def get_commands(self) -> List[ApplicationCommand]:
247
248
This does not include subcommands.
249
"""
250
- return [
251
- c for c in (
252
- c for c in self.__cog_commands__
253
- if not isinstance(c, (SlashCommand, MessageCommand, UserCommand))
254
- ) if c.parent is None
255
- ] + [
256
257
- if isinstance(c, (SlashCommand, MessageCommand, UserCommand))
258
- ]
259
-
+ return [c for c in self.__cog_commands__ if isinstance(c, ApplicationCommand) and c.parent is None]
260
@property
261
def qualified_name(self) -> str:
262
""":class:`str`: Returns the cog's specified name, not the class name."""
0 commit comments