Skip to content

$awaitMessageReactions

$awaitMessageReactions will reply when a user reacts with a specific emoji.

Usage

$awaitMessageReactions[channelID;messageID;userFilter;time;reactions;commands;errorMessage?;awaitData?]

Parameters

FieldTypeDescriptionRequired
channelIDnumberChannel ID.true
messageIDnumberMessage ID.true
userFilterstringTo what the bot will reply
1. everyone
2. specific user ID - any user ID
true
timestringHow long the command will last / when the command expires.true
reactionsstringReactions, you can add multiple by separating them with commas ( “ )true
commandsstringCommands that will be executed, you can separate multiple emojis with a comma ( “ )true
errorMessage?stringError message when command expires.false
awaitData?stringAwaited Data.false

Make sure you have GuildMessageReactions as intent in your main file.

Example(s)

This will reply to you when you react with the “❤️” emoji to the bot’s message:

1
client.command({
2
name: "awaitMessageReactions",
3
code: `
4
React with "❤️" for a surprise!
5
$awaitMessageReactions[$channelID;$messageID;$authorID;10s;❤️;awaitedcommandexample;Whoops! You didn't react in time..]
6
`
7
});
8
9
client.awaitedCommand({
10
name: "awaitedcommandexample",
11
code: `
12
Nice, you reacted with ❤️.
13
`
14
});