Constructor
new Cancel(fileName)
Parameters:
Name | Type | Description |
---|---|---|
fileName |
* | The filename in which the command is defined, stripped by the extension. |
- Version:
-
- 1.0
- Source:
Extends
Methods
execute(message, args)
Executes the main logic of the command
Parameters:
Name | Type | Description |
---|---|---|
message |
* | A discord.js message object representing a request. |
args |
* | Arguments passed in addition to the command call |
- Overrides:
- Source:
getCommand() → {Object}
Creates and returns a object representation of the command. Used to init discord.js commands.
- Overrides:
- Source:
getResponse(name) → {string}
Returns a command specific response for a user, additionally supplied arguments besides name are used to replace template sequeuence of the string.
Parameters:
Name | Type | Description |
---|---|---|
name |
string | The key of the response. Used to access the responses for the calling command. |
- Overrides:
- Source: