Checking Reactions

How can I know when a reaction is added to a message by anyone, and if the same reaction is reacted by another person will it trigger again?
6 Replies
d.js docs
d.js docs3y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
Syjalo
Syjalo3y ago
messageReactionAdd event <Message>.createReactionCollector() <Message>.awaitReactions()
MrEthλn
MrEthλnOP3y ago
if i do that will it listen for any and all or do I need to spesify a message
Dagan
Dagan3y ago
the ones with <Message> are only for a specified msg but tou could use a channel for the collector to
MrEthλn
MrEthλnOP3y ago
messageReactionAdd will check for any message?
client.on('messageReactionAdd', async (user, messageReaction) => {

const PLUS = client.emojis.cache.get('1009722856348856360');

if(messageReaction == PLUS)


});
client.on('messageReactionAdd', async (user, messageReaction) => {

const PLUS = client.emojis.cache.get('1009722856348856360');

if(messageReaction == PLUS)


});
From that how would I be able to get the amount of reactions?
d.js docs
d.js docs3y ago
Documentation suggestion for @scriptedethan:property MessageReaction#count The number of people that have given the same reaction
Want results from more Discord servers?
Add your server