#Reaction Does Something
9 messages · Page 1 of 1 (latest)
• 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.
Documentation suggestion for @shadow wave:
(event) Client#messageReactionAdd
Emitted whenever a reaction is added to a cached message.
noticed that the description of that event says that the message needs to be cached so i found this answer on stack overflow https://stackoverflow.com/questions/61694750/cache-message-discord-js and then have this bit of code but not getting any output
client.on('messageReactionAdd', (reaction, user) => {
console.log(reaction);
console.log(user);
});
and from what i found from my few mins of searching messages get cached went sent when the bot is online, so i sent a new message and added a reaction and did not get an output from that either
You can also use partials to receive the event on uncached messages.
Keep in mind that you need the Guilds, GuildMessages and GuildMessageReactions intent.
Popular Topics: Partial Structures