Subcommand groups
how can I create subcommand groups that also have optional string / user selection in the command?
Solution:Jump to solution
Sapphire Framework
Using Subcommand Groups | Sapphire
The following examples will show off how to map subcommands within a group to methods in your command class. They will
8 Replies
the group itself cannot have options, only the commands inside the group. Discord API rules.
does that answer your question? Because I'm not sure if I understand correctly
i found the answer here https://www.sapphirejs.dev/docs/Guide/plugins/Subcommands/getting-started/, thanks!
ok so i guess what i meant was how do i create subcommand groups for a command, the sapphire docs only show how to create subcommands
it only has subcommands
Solution
Sapphire Framework
Using Subcommand Groups | Sapphire
The following examples will show off how to map subcommands within a group to methods in your command class. They will
exactly what i was looking for and couldn't find, thanks!
one more question i'll ask here, is there a way to put subcommands into separate files instead of having everything in one file? (same with subcommand groups)
not with the base plugin, there is a community plugin though. https://github.com/sawa-ko/neko-plugins/tree/main/packages/subcommands-advanced
awesome! ill take a look