Commands
This is the full specification of the Commands Class
This class is exported as Commands, therefore import with const { Commands } = require("djs-command-control")
Constructor
The constructor automatically loads all js files in the path
that exports the CommandObj type or an Instance of the Command Class
Name | Type | Description |
| Your Discord.js Client | |
| string | The path of the commands folder relative to the root of the project (where package.json lives) |
| The options for creating the Commands object |
Functions
Name | Type | Arguments | Returns | Description |
| AsyncFunction |
|
| Should always be called in the onMessage event, this does not get registered autmatically, to allow you to do other things in the onMessage event |
| Function |
| Adds another category that you can add commands t |
Last updated