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
|
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