createMessage

system.createMessage(MESSAGE_ID, CHANNEL_ID, LIMIT, RESTRICTIONS, OPTION_1, OPTION_2, OPTION_3 ...);

Parameter

Type

Description

MESSAGE_ID

String

Message to be reacted

CHANNEL_ID

String

Channel with the message you specified

LIMIT

Number

Role limit that can be taken

RESTRICTIONS

Array

Permissions required to use the system

OPTION

ReactionRole Option

ReactionRole Option

You can add unlimited amount of options

If you want to make this message public, type "[]" to RESTRICTION field

Example:

// for public
system.createMessage("MESSAGE_ID", "CHANNEL_ID", 2, [], option1, option2, option3);
// for only members who has "BAN_MEMBERS" and "EMBED_LINKS"
system.createMessage("MESSAGE_ID", "CHANNEL_ID", 2, [ "BAN_MEMBERS", "EMBED_LINKS" ], option1, option2, option3);