How can I remove a subcommand check?
I've got a
switch
that handle different subcommands, but I need to include a check for the subcommand in the helper function itself. Is there a way I can avoid needing to do this check?Solution:Jump to solution
@sapphire/plugin-subcommands
Plugin for @sapphire/framework that adds support for subcommands.
❯ Author: sapphiredev
❯ Maintainers: favna, kyranet, and vladfrangu
❯ Latest version: 4.2.2
❯ License: MIT
❯ Date Created: <t:1613142082:d>
❯ Date Modified: <t:1697502715:d>
Dependencies:
@sapphire/utilities and tslib
1 Reply
Solution
@sapphire/plugin-subcommands
Plugin for @sapphire/framework that adds support for subcommands.
❯ Author: sapphiredev
❯ Maintainers: favna, kyranet, and vladfrangu
❯ Latest version: 4.2.2
❯ License: MIT
❯ Date Created: <t:1613142082:d>
❯ Date Modified: <t:1697502715:d>
Dependencies:
@sapphire/utilities and tslib