Custom Command
FunctionsMessage Functions

$getReactions

Retrieve a list of users who reacted with a specific emoji to a message.

Usage

$getReactions[channelId;messageId;emoji;mention/username/id]

Parameters:

  • channelId: The ID of the channel where the message is located.
  • messageId: The ID of the message to retrieve reactions from.
  • emoji: The emoji to search for. This can be the emoji itself (e.g., 👍) or its ID (if it's a custom emoji).
  • mention/username/id: Specifies what kind of data to return for each user. Choose one of the following:
    • mention: Returns the user's mention string (e.g., <@123456789012345678>).
    • username: Returns the user's username (e.g., ExampleUser).
    • id: Returns the user's ID (e.g., 123456789012345678).

Example

Scenario: You want to get a list of users who reacted with the 👍 emoji on a specific message and mention them.

Code:

$getReactions[832894131844128888;940739445487988807;👍;mention]

Visual Examples

Counting how many users reacted

Function Difficulty: Medium

Tags: Get Reactions

Function Cooldown

This function has built-in cooldown. Why? Read more about cooldowns here.

  • Cooldown: 3 seconds
  • Tracked By: Message ID
  • Type: fetchuser

Functions with the same type share cooldowns based on the same Tracked By value.

On this page