Constructor
# new PermissionCommand(client, info, permissionInfo)
Constructor for our custom command, calls the parent constructor.
Parameters:
Name | Type | Description |
---|---|---|
client |
CommandoClientOptions | the client the command is for |
info |
CommandInfo | the information for this commando command |
permissionInfo |
CommandPermissionInfo | the custom information for this command |
Extends
- Command
Members
String
# static FLAGS
String permission flags used for command permissions.
* ADMIN_ROLE : only admins can use this command
* STAFF_ROLE : staff and admin can use this command
* ADMIN_CONSOLE : can only be used in the admin console
Properties:
Name | Type | Description |
---|---|---|
ADMIN_ROLE |
String | |
STAFF_ROLE |
String | |
ADMIN_CONSOLE |
String |
Methods
# abstract protected runCommand(botGuild, message, args, fromPattern, result)
Required class by children, will throw error if not implemented!
Parameters:
Name | Type | Description |
---|---|---|
botGuild |
BotGuildModel | |
message |
CommandoMessage | |
args |
Object | |
fromPattern |
Boolean | |
result |
Promise.<*> |