CommandHandler class
The CommandHandler class extends the NodeJS built-in EventEmitter class.
constructor
The CommandHandler class requires one argument, which is the json object of an instance of the Zyno Bot Addons CommandBuilder class.
Properties
name
The name of the command.
description
The description given to the command.
id
A unique randomly created id by the Zyno Bot Addons module to identify the command.
Events
Event | Description | Arguments |
---|---|---|
execute | Gets emitted when the command is being used by a member in a Discord server. | Command |
Last updated