ReactCommand(data)

A class used to register commands for the command handler

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
Name Type Attributes Default Description
restricted Boolean <optional>
false

Whether or not this command is restricted to admin only

removeReaction Boolean <optional>
false

Whether the triggering reaction is removed after executed or not

guildOnly Boolean <optional>
false

Whether or not this command can only be triggered in guilds as opposed to DMs

authLevel Number <optional>
0

The minimum auth level required to execute this command

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