Skip to content

$reactionCollector

$reactionCollector will create a reaction collector on a given message.

Usage

$reactionCollector[channelID;messageID;userFilters;time;reactions;awaitedCommands;removeReaction?;awaitData?;endAwait?]

Parameters

FieldTypeDescriptionRequired
channelIDnumberchannel IDtrue
messageIDnumbermessage IDtrue
userFilterstringto what the bot will reply
1. everyone
2. specific user ID - any user ID
true
timestringwhen the command expirestrue
reactionsstringreactions, you can separate multiple emojis with a comma ( “ )true
awaitedCommandsstringcommands to execute, you can separate multiple emojis with a comma ( “ )true
removeReaction?stringremove the reactions after the commands executedfalse
awaitData?stringawaited datafalse
endAwait?stringend awaited command / awaited command to execute when timer endsfalse

Example(s)

This will send a message when you add a reaction:

1
client.command({
2
name: "reactionCollector",
3
code: `
4
$reactionCollector[$channelID;$splitText[1];$authorID;10m;👀;awaitReaction;;true]
5
$textSplit[$sendMessage[React with "👀" for something special!;true]; ]
6
`
7
});
8
9
client.awaitedCommand({
10
name: "awaitReaction",
11
code: `
12
$sendMessage[👀 what's this?]
13
`
14
});