Constructor
new ModzClient(optionsopt)
- Source:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
options |
ModzClientOptions
|
<optional> |
Options for the client |
Extends
- Client
Members
loader :Collection
The command database of the client
- Source:
Type:
-
Collection
Events
commandError
Emitted when an error occurs while running a command
- Source:
Parameters:
Name | Type | Description |
---|---|---|
error |
Error
|
The occurred error |
command |
Command
|
Command that is being run |
message |
Message
|
Command message that the command is running from |
args |
Object
|
string
|
Array.<string>
|
Arguments for the command |
commandLoad
Emitted when a command is loaded
- Source:
Parameters:
Name | Type | Description |
---|---|---|
command |
Command
|
Command that was loaded |
commandReload
Emitted when a command is reregistered
- Source:
Parameters:
Name | Type | Description |
---|---|---|
newCommand |
Command
|
New command |
oldCommand |
Command
|
Old command |
commandRun
Emitted when running a command
- Source:
Parameters:
Name | Type | Description |
---|---|---|
command |
Command
|
Command that is being run |
message |
Message
|
Command message that the command is running from |
args |
Object
|
string
|
Array.<string>
|
Arguments for the command |