description |
---|
An event that gets executed, if the bot sees a user removing a reaction on a message. To let the bot listen to the event, add one bot.onReactionRemove() callback inside your mainfile. |
This callback logs every time a user un-reacts to a message
bot.reactionRemoveCommand({ //command
channel: "channel id", //channel where it logs
code: `your code` // Message that will be sent to <channel>
})
bot.reactionRemoveCommand({
channel: "772414449839636490",
code: `
$username has unreacted with $emojiToString
`
})
- $emojiToString => the exactly emoji itself, either default emoji e.g.
🎉
or<:emojiname:emojiID>
style. - $emojiName => the name of the emoji the user reacted with
- $emojiID => the ID of the emoji the user react with (for custom Emojis)
- $messageID => to get the messageID the user reacted
- $authorMessage => to get the authorID of the messagte the user reacted to
- $channelID => to get the channelID of the message
- $authorID => the ID of the user that reacted
- $username => the username of the user that reacted
{% hint style="info" %} You can use functions like $onlyForChannels or the following functions inside an $onlyIf[] limiter at the bottom of the code to limit your code to specific reactions etc: {% endhint %}