Members
buckets :Map.<string, Ratelimiter>
- Source:
Map of buckets
Type:
- Map.<string, Ratelimiter>
Methods
checkArguments(msg, given, args) → {Promise.<map>}
- Source:
- To Do:
-
- add search things
- add websockets and try to get the guild/user from another shard
Check the arguments and return new args
Parameters:
Name | Type | Description |
---|---|---|
msg |
Eris.Message | Message |
given |
Array.<string> | Array of given arguments |
args |
Array.<ICommandArg> | Array of command args |
Returns:
- Type
- Promise.<map>
checkBotPermissions(msg, perms) → {Promise.<map>}
- Source:
Check the bot permissions
Parameters:
Name | Type | Description |
---|---|---|
msg |
Eris.Message | Message |
perms |
Array.<ICommandPermission> | Array of permissions |
Returns:
- Type
- Promise.<map>
checkMessage(msg) → {Promise.<void>}
- Source:
Check if a message is a command
Parameters:
Name | Type | Description |
---|---|---|
msg |
Eris.Message | Message |
Returns:
- Type
- Promise.<void>
checkPermissions(msg, perms) → {Promise.<map>}
- Source:
Check the permissions
Parameters:
Name | Type | Description |
---|---|---|
msg |
Eris.Message | Message |
perms |
Array.<ICommandPermission> | Array of permissions |
Returns:
- Type
- Promise.<map>
executeCommand(msg, command, args, prefix) → {Promise.<any>}
- Source:
Execute a command
Parameters:
Name | Type | Description |
---|---|---|
msg |
Eris.Message | Message |
command |
string | Command name |
args |
minimist.ParsedArgs | Arguments |
prefix |
string | Prefix used |
Returns:
- Type
- Promise.<any>
init() → {Promise.<void>}
- Source:
Initializes the command handler
Returns:
- Type
- Promise.<void>