djs-slash-handler
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

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

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 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

Package Sidebar

Install

npm i djs-slash-handler

Weekly Downloads

0

Version

1.1.0

License

MIT

Unpacked Size

20.1 kB

Total Files

13

Last publish

Collaborators

  • saiteja-madha