Functionalities
Functions
Data
Other
$randomUserReaction
Returns the ID of a random user from a message of a specific reaction.

FUNCTION USAGE

  • $randomUserReaction[channelID;messageID;emoji]

Properties:

channelID - The ID of a channel where the reaction takes place. messageID - The ID of a message associated with the emoji reaction. emoji - The emoji used to react to a message.

Example 1: The function will return a random user ID that reacted with that emoji on that message.

bot.Command({
name: "get",
code: `
$randomUserReaction[$channelID;860687604764508181;😃]
`
})

Example 2: If fields are defined correctly, the function will return a random user ID that reacted with that emoji on that message.

bot.Command({
name: "get",
code: `
$randomUserReaction[$message[1];$message[2];$message[3]]
`
})
Copy link