Skip to content

$getReactions

$getReactions will return properties about a given reaction on a specific message.

Usage

$getReactions[channelID;messageID;reaction;force?;option?]

Parameters

FieldTypeDescriptionRequired
channelIDnumberID of the channel where the message is located in.true
messageIDnumberID of the message.true
reactionstringThe reaction its information will be returned of.true
force?boolean1. true (default)
2. false
false
option?stringHow 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:

1
client.command({
2
name: "getReactions",
3
code: `
4
$getReactions[$channelID;$messageID;πŸ‘‹;true;mention]
5
$addCmdReactions[πŸ‘‹]
6
`
7
});