Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/saiteja-madha/djs-slash-handler
📦 Command handler for discord.js v14 subcommands and subcommand groups
https://github.com/saiteja-madha/djs-slash-handler
command-handler-v14 discord discord-js-handler-v14 discord-js-template discord-js-v14 discord-subcommands subcommands
Last synced: 2 months ago
JSON representation
📦 Command handler for discord.js v14 subcommands and subcommand groups
- Host: GitHub
- URL: https://github.com/saiteja-madha/djs-slash-handler
- Owner: saiteja-madha
- License: mit
- Created: 2022-08-28T03:17:58.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-17T21:44:00.000Z (about 2 years ago)
- Last Synced: 2024-09-22T14:08:28.910Z (3 months ago)
- Topics: command-handler-v14, discord, discord-js-handler-v14, discord-js-template, discord-js-v14, discord-subcommands, subcommands
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/djs-slash-handler
- Size: 39.1 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# About
Command handler for discord.js v14 subcommands and subcommand groups.
It will use the file structure to create the corresponding subcommands and subcommand groups.## Installation
```bash
npm install djs-slash-handler
```## Working
Below is an example of how command handler interprets the file structure. The folder/file names are the names of the subcommands/subcommand groups.
```
commands
|
|__ category1
|
|__ command1.js
|
|__ command2.js
|
|__ category2
|
|__ command3
|__ subcommand1.js
|__ subcommand2.js
|
|__ command4
|__ subcommandgroup
|__ subcommand1.js
|__ subcommand2.js
|__ subcommand1.js
|__ subcommand2.js
```Refer to the [discord developer documentation](https://discord.com/developers/docs/interactions/application-commands#subcommands-and-subcommand-groups) for more information on valid/invalid structure
## Additional Info
- This is a quick & dirty implementation of the command handler
- Additional features/documentation will be added in the future
- Feel free to contribute to this project and open an issue if you find any bugs
- For more information on how to use the command handler, join us on discord [here](https://discord.gg/BZFH4RSf2u)