DB-Script
Discord Server
NPM
Search…
DB-Script
Getting Started
NPM Updates
Known Bugs
Functionalities
Bot Functions
Events
BanCommand
BotJoinCommand
BotLeaveCommand
ChannelCreateCommand
ChannelDeleteCommand
ChannelUpdateCommand
EmojiCreateCommand
EmojiDeleteCommand
GuildUpdateCommand
JoinedCommand
LeaveCommand
LoopCommand
MessageDeleteCommand
MessageEditEvent
RateLimitCommand
ReadyCommand
ReactionAddCommand
ReactionRemoveCommand
RoleCreateCommand
RoleDeleteCommand
UnbanCommand
UserUpdateCommand
Functions
Guides
Other
Contributors
Discord Server
FAQs
Staff
Powered By
GitBook
ReactionRemoveCommand
An event that fires when a user removes a reaction from a message. Placeholders can be used to return data about the reaction.
​
Placeholders: 13
1.
{reactions}
- How many reactions the message has after the event fires.
2.
{emoji}
- The emoji that was used to un-react to the message.
3.
{emojiid}
- The emoji ID that was used to un-react to the message.
4.
{emojiname}
- The name of the emoji that was used to un-react to the message.
5.
{didbotreact}
- Returns
true
if the bot un-reacted to the message, otherwise function returns
false
.
6.
{messageurl}
- The URL of the message that was un-reacted with.
7.
{reactedat}
- The date and time the message was un-reacted with.
8.
{identifier}
- The emoji identifier of the emoji that was used to un-react to the message. Great for piecing together the emoji that was used.
9.
{channelid}
- ID of hthe channel the reaction took place.
10.
{channelname}
- Name of the channel the reaction took place.
11.
{channelmention}
- Mention the channel the reaction took place.
12.
{guildid}
- ID of the guild the reaction took place.
13.
{guildname}
- Name of the guild the reaction took place.
​
Example 1: The event placed in the main file.
1
bot.ReactionRemoveCommand({
2
name: "39588639875304545",
3
code: `
4
$description[
5
$user[$authorID;mention] un-reacted to a {hyper:message:{messageurl}} with {emoji}
6
]
7
`
8
})
9
bot.onReactionRemove()
Copied!
​
Example 2: The event placed in the
event handler
(its own file)
bot.onReactionRemove()
- Goes in the main file to be able to call the event!
1
module.exports.ReactionRemoveCommand = ({
2
name: "39588639875304545",
3
code: `
4
$description[
5
$user[$authorID;mention] un-reacted to a {hyper:message:{messageurl}} with {emoji}
6
]
7
`
8
})
Copied!
Previous
ReactionAddCommand
Next
RoleCreateCommand
Last modified
10mo ago
Copy link
Contents
Placeholders: 13