Subcommand groups

how can I create subcommand groups that also have optional string / user selection in the command?
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
Jump to solution
8 Replies
Favna
Favnaā€¢4mo ago
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
4ngelšŸ
4ngelšŸā€¢4mo ago
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
4ngelšŸ
4ngelšŸā€¢4mo ago
it only has subcommands
No description
Solution
ItaChi
ItaChiā€¢4mo ago
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
4ngelšŸ
4ngelšŸā€¢4mo ago
exactly what i was looking for and couldn't find, thanks!
4ngelšŸ
4ngelšŸā€¢4mo ago
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)
Favna
Favnaā€¢4mo ago
not with the base plugin, there is a community plugin though. https://github.com/sawa-ko/neko-plugins/tree/main/packages/subcommands-advanced
4ngelšŸ
4ngelšŸā€¢4mo ago
awesome! ill take a look
Want results from more Discord servers?
Add your server