new ReactCommand(data)
Construct a react command
Parameters:
Name | Type | Description |
---|---|---|
data |
Object | The react command data |
Properties:
Name | Type | Description | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
data.emoji |
String | The emoji that triggers the command |
|||||||||||||||||||||||||
data.desc |
String | The description of the react command |
|||||||||||||||||||||||||
data.options |
Object | Additional options for the react command Properties
|
|||||||||||||||||||||||||
data.action |
ReactCommandAction | The react command action |
Members
-
action : ReactCommandAction
-
The react command action
-
desc : String
-
The description of the react command
-
emoji : String
-
The emoji that triggers the command
-
info : String
-
Get the info of this react command
Example
'**emoji** - *description*'
-
options : Object
-
The options for the react command
Properties:
Name Type Description restricted
Boolean Whether or not this command is restricted to admin only
removeReaction
Boolean Whether the triggering reaction is removed after executed or not
guildOnly
Boolean Whether or not this command can only be triggered in guilds as opposed to DMs
authLevel
Number The minimum auth level required to execute this command