File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1317,13 +1317,13 @@ async def invoke_autocomplete_callback(self, ctx: AutocompleteContext) -> None:
1317
1317
ctx .interaction .data = option
1318
1318
await command .invoke_autocomplete_callback (ctx )
1319
1319
1320
- def walk_commands (self ) -> Generator [SlashCommand , None , None ]:
1321
- """An iterator that recursively walks through all slash commands in this group.
1320
+ def walk_commands (self ) -> Generator [SlashCommand | SlashCommandGroup , None , None ]:
1321
+ """An iterator that recursively walks through all slash commands and groups in this group.
1322
1322
1323
1323
Yields
1324
1324
------
1325
- :class:`.SlashCommand`
1326
- A slash command from the group.
1325
+ :class:`.SlashCommand` | :class:`.SlashCommandGroup`
1326
+ A nested slash command or slash command group from the group.
1327
1327
"""
1328
1328
for command in self .subcommands :
1329
1329
if isinstance (command , SlashCommandGroup ):
You can’t perform that action at this time.
0 commit comments