#Is it possible to get the sub-commands of command groups? (not slash commands)
1 messages · Page 1 of 1 (latest)
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
...
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.
A library that simplifies 'help' command creation for application commands in your disnake bot. Automatically parse and access detailed attributes for your commands.
I already have a custom baseclass set up so it might be cumbersome to use, not because it's a drop-in replacement
You could still use stuff from it. Because it does the thing you're asking
Maybe not..
Are you using app commands?
no, none at all