#Is it possible to get the sub-commands of command groups? (not slash commands)

1 messages · Page 1 of 1 (latest)

shadow ridge
#

I can't seem to find it under the docs, I'd like it if someone pointed me to the right direction please.

#

Is it possible to get the sub-commands of command groups? (not slash commands)

#

Context:
Fetching all commands of a cog and adding them to a list for my help command

...
for command in cog.get_commands(): # type: ignore
    if not command.hidden:
        commandsList.append(command.name)
        commandsSelectList.append(disnake.SelectOption(label=command.name, description=command.description))
return commandsList, commandsSelectList
...
warm galleon
#

Yes it's possible.

#

Also, if you're interested in an easier way of handling that,
https://dlchamp.github.io/Helply

Specifically created to get rid of all the complexity of figuring out sub commands and groups, etc, etc and making it as simple as possible.

shadow ridge
warm galleon
#

You could still use stuff from it. Because it does the thing you're asking

#

Maybe not..

#

Are you using app commands?

shadow ridge
#

no, none at all

warm galleon
#

Oh, then yeah.

#

Not for you.

#

Then you should probably look into subcalssing disnake.MinimalHelpCommand since there is also already a built-in process for handling help commands.