ReactInterface(data)

An array of emoji button that attach to a message to do different actions

new ReactInterface(data)

Construct a react interface

Parameters:
Name Type Description
data Object

The react interface data

Properties:
Name Type Attributes Default Description
data.buttons Array<ReactCommand> | ReactCommand

The buttons of the interface

data.options Object <optional>
{}

The options for the interface

Properties
Name Type Attributes Default Description
designatedUsers Array<String> | String <optional>

The IDs of the users who can use the react interface. By default, it's the owner of the message reacted on

deleteAfterUse Boolean <optional>
false

Whether the interface is deleted after a use or not

removeReaction Boolean <optional>
false

Whether the triggering reaction is removed after executed or not

authLevel Number <optional>
0

The minimum auth level required to execute this command

Members

buttons : Map<String, ReactCommand>

The buttons of the interface

options : Object

The options for the interface

Properties:
Name Type Description
designatedUsers Array<String> | undefined

The IDs of the users who can use the react interface. By default, it's the owner of the message reacted on (defined by ReactionHandler.bindInterface())

deleteAfterUse Boolean

Whether the interface is deleted after a use or not

removeReaction Boolean

Whether the triggering reaction is removed after executed or not

authLevel Number

The minimum auth level required to execute this command