Skip to content

Commit

Permalink
Update discord/commands/core.py
Browse files Browse the repository at this point in the history
Co-authored-by: plun1331 <49261529+plun1331@users.noreply.github.com>
Signed-off-by: Krishnan Shankar <krishnans2006@gmail.com>
  • Loading branch information
krishnans2006 and plun1331 committed Feb 14, 2023
1 parent 695fe99 commit db72efc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions discord/commands/core.py
Expand Up @@ -1322,10 +1322,8 @@ def walk_commands(self) -> Generator[SlashCommand | SlashCommandGroup, None, Non
Yields
------
:class:`.SlashCommand`
A slash command from the group.
:class:`.SlashCommandGroup`
A nested slash command group from the group.
:class:`.SlashCommand` | :class:`.SlashCommandGroup`
A nested slash command or slash command group from the group.
"""
for command in self.subcommands:
if isinstance(command, SlashCommandGroup):
Expand Down

0 comments on commit db72efc

Please sign in to comment.