Constructor
new Command(config, sourcePath)
- Source:
- Tutorials:
Initializes a new Command
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
Object | Command configuration object Properties
|
||||||||||||||||||||||||||||||||||||||||||||||||||
sourcePath |
String | full path of Command source file |
Members
(static) clean :Command
- Source:
Properties:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
executeConfig |
Object |
Properties
|
Deletes the most recent messages in the current channel (10 by default, 100 maximum, supports all
argument)
Type:
(static) event :Command
- Source:
Properties:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
executeConfig |
Object |
Properties
|
Lists all Events enabled in the context, toggles the Event provided, or lists all Events that can be enabled
Type:
(static) help :Command
- Source:
Properties:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
executeConfig |
Object |
Properties
|
Lists all Commands or gets help for a specific Command
Type:
(static) hook :Command
- Source:
Lists all Hooks enabled in the context, toggles the Hook provided, or lists all Hooks that can be enabled
Type:
(static) ping :Command
- Source:
Properties:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
executeConfig |
Object |
Properties
|
Returns the latency (in milliseconds) between when the Command was sent and when the Command was executed
Type:
(static) prefix :Command
- Source:
Properties:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
executeConfig |
Object |
Properties
|
Type:
(static) reload :Command
- Source:
Properties:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
executeConfig |
Object |
Properties
|
Reloads a Command from its source file
Type:
(static) status :Command
- Source:
Properties:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
executeConfig |
Object |
Properties
|
Reports the memory and processor usage of the server's process along with its uptime and Discord stats