Unable to collect reactions

Hey guys, I could use some help with an issue I'm seeing using discord.js šŸ™‚ I'm trying to register when a user reacts to a message that my bot sends out. I have
await interaction.deferReply();
const message = await interaction.editReply({
content: 'Message',
});

message.react(':rewind:');
const collector = await message.createReactionCollector({ filter: () => true, time: 15000 });

collector.on('collect', (reaction, user) => {
console.log(`Reaction collected`);
});
await interaction.deferReply();
const message = await interaction.editReply({
content: 'Message',
});

message.react(':rewind:');
const collector = await message.createReactionCollector({ filter: () => true, time: 15000 });

collector.on('collect', (reaction, user) => {
console.log(`Reaction collected`);
});
For record, this response is a follow up from another message that my bot sends previously, that's why I'm using editReply. The message is being sent, and I'm seeing the automated āŖ reaction. However when I click a reaction to the message I'm not seeing anything happen. Does anyone have any idea why I might be having this issue?
12 Replies
d.js toolkit
d.js toolkitā€¢13mo 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.
Unknown User
Unknown Userā€¢13mo ago
Message Not Public
Sign In & Join Server To View
h3rm3s
h3rm3sā€¢13mo ago
const client = new Client({ intents: [GatewayIntentBits.Guilds] });
const client = new Client({ intents: [GatewayIntentBits.Guilds] });
Unknown User
Unknown Userā€¢13mo ago
Message Not Public
Sign In & Join Server To View
h3rm3s
h3rm3sā€¢13mo ago
Okay cool let me try that Yes!! It works! Thank you!! I just added GuildMessageReactions
Unknown User
Unknown Userā€¢13mo ago
Message Not Public
Sign In & Join Server To View
h3rm3s
h3rm3sā€¢13mo ago
Do I need to add Partials.Reaction?
Unknown User
Unknown Userā€¢13mo ago
Message Not Public
Sign In & Join Server To View
h3rm3s
h3rm3sā€¢13mo ago
Oh yeah I don't think that's necessary But thank you so much, I owe ya one
Unknown User
Unknown Userā€¢13mo ago
Message Not Public
Sign In & Join Server To View
h3rm3s
h3rm3sā€¢13mo ago
Have a good rest of your weekend
Unknown User
Unknown Userā€¢13mo ago
Message Not Public
Sign In & Join Server To View