$getMessageReactions
$getMessageReactions
returns a list of reactions (emojis) on a specified message from a specific channel.
Usage
$getMessageReactions[channelID?;messageID;type?;sep?]
Parameters
Field | Type | Description | Required |
---|---|---|---|
channelID? | string | The ID of the channel where the message is located. Defaults to the current channel if not provided. | false |
messageID | string | The ID of the message to get reactions from. | true |
type? | string | The type of data to return: 1. emoji (default) – emoji format 2. name 3. id | false |
sep? | string | Separator to separate multiple returned values. Default is , . | false |
Example(s)
This command returns the list of emoji reactions (formatted) on a specific message:
1client.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:
1client.command({2 name: "getMessageReactions",3 code: `4 $getMessageReactions[$channelID;112233445566778899;name] $comment[Example message ID provided.]5 `6});