Skip to content

$getMessageReactions

$getMessageReactions returns a list of reactions (emojis) on a specified message from a specific channel.

Usage

$getMessageReactions[channelID?;messageID;type?;sep?]

Parameters

FieldTypeDescriptionRequired
channelID?stringThe ID of the channel where the message is located. Defaults to the current channel if not provided.false
messageIDstringThe ID of the message to get reactions from.true
type?stringThe type of data to return:
1. emoji (default) – emoji format
2. name
3. id
false
sep?stringSeparator to separate multiple returned values. Default is , .false

Example(s)

This command returns the list of emoji reactions (formatted) on a specific message:

1
client.command({
2
name: "getMessageReactions",
3
code: `
4
$getMessageReactions[$channelID;112233445566778899;emoji;, ] $comment[Example message ID provided.]
5
`
6
});

This command returns only the names of the emoji reactions:

1
client.command({
2
name: "getMessageReactions",
3
code: `
4
$getMessageReactions[$channelID;112233445566778899;name] $comment[Example message ID provided.]
5
`
6
});