Command File & Directory Parsing

1. Is there a link to the source code on how the framework handles files for commands? 2. Is there a way to extend the functionality of the current command handling built into the framework where it can interpret subcommands. An example would be commands/music/index.ts & commands/music/playlist.ts. What index.ts would be, is the "base command". Basically my question is how can my command handler be similar to Skyra's. If manipulating the framework won’t work, will using node:fs do the trick? Any links or documentation would be appreciated!
Solution:
GitHub
GitHub - sapphiredev/pieces: Piece loader for @sapphire/framework
Piece loader for @sapphire/framework. Contribute to sapphiredev/pieces development by creating an account on GitHub.
npm
@sapphire/plugin-subcommands
Plugin for @sapphire/framework that adds support for subcommands.. Latest version: 3.2.3, last published: 2 months ago. Start using @sapphire/plugin-subcommands in your project by running npm i @sapphire/plugin-subcommands. There are no other projects in the npm registry using @sapphire/plugin-subcommands.
Jump to solution
1 Reply
Solution
Sawako
Sawako2y ago
GitHub
GitHub - sapphiredev/pieces: Piece loader for @sapphire/framework
Piece loader for @sapphire/framework. Contribute to sapphiredev/pieces development by creating an account on GitHub.
npm
@sapphire/plugin-subcommands
Plugin for @sapphire/framework that adds support for subcommands.. Latest version: 3.2.3, last published: 2 months ago. Start using @sapphire/plugin-subcommands in your project by running npm i @sapphire/plugin-subcommands. There are no other projects in the npm registry using @sapphire/plugin-subcommands.
Want results from more Discord servers?
Add your server