discord message reactions

when i try to get the event from the messages with Events.MessageReactionAdd its not even reacting and printing out a simple console output i already have all intents i guess i need as you can see here
const client = new Client({
intents: [
GatewayIntentBits.GuildMessages,
GatewayIntentBits.Guilds,
GatewayIntentBits.MessageContent,
GatewayIntentBits.GuildPresences,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.GuildMessageReactions,
]
});

// the simple version for a simple output
client.on(Events.MessageReactionAdd, (reaction, user) => {
console.log("someone reacted to something");
});
const client = new Client({
intents: [
GatewayIntentBits.GuildMessages,
GatewayIntentBits.Guilds,
GatewayIntentBits.MessageContent,
GatewayIntentBits.GuildPresences,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.GuildMessageReactions,
]
});

// the simple version for a simple output
client.on(Events.MessageReactionAdd, (reaction, user) => {
console.log("someone reacted to something");
});
4 Replies
d.js toolkit
d.js toolkit13mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by staff
chewie
chewie13mo ago
You need partials if the message wasnt cached
d.js docs
d.js docs13mo ago
guide Popular Topics: Partial Structures read more
unddasnoch
unddasnochOP13mo ago
ohhh yeah that solved it thanks :3
Want results from more Discord servers?
Add your server