Pattern for fetching all registered slash commands
I have some slash commands and some with subcommands and and want to introduce a
I realize I can use the raw discord client to fetch that registered commands and parse then use that. However, I'm trying to see if it's possible to avoid making those additional network calls.
Thanks.
/help slash command that shows all the available guild commands and their description? I want to get the names and descriptions for all the slash commands. I realize I can use the raw discord client to fetch that registered commands and parse then use that. However, I'm trying to see if it's possible to avoid making those additional network calls.
Thanks.
Solution
You can get all your command classes from the commands store. Thats accessed using
client.stores.get('commands')