$getReactions
$getReactions
will return properties about a given reaction on a specific message.
Usage
$getReactions[channelID;messageID;reaction;force?;option?]
Parameters
Field | Type | Description | Required |
---|---|---|---|
channelID | number | ID of the channel where the message is located in. | true |
messageID | number | ID of the message. | true |
reaction | string | The reaction its information will be returned of. | true |
force? | boolean | 1. true (default) 2. false | false |
option? | string | How it will return the users who reacted to that message 1. username (default) - returns the usernames 2. mention - mentions the users 3. id - returns the user id | false |
Please note that this wonβt work without the GuildMessageReactions
intent.
Example(s)
This will mention all users that reacted to your message, in this case, only your bot:
1client.command({2 name: "getReactions",3 code: `4$getReactions[$channelID;$messageID;π;true;mention]5$addCmdReactions[π]6 `7});