Filter not picking up when a user interacts with a static message

module.exports = {
name: 'ruleVerify',

async execute(client){

const rulesMessage = client.guild.channels.message.cache.id('1116202445916348497')
const message = await message.reply({
content: `React here!`,
fetchReply: true,
});

const emoji = client.emojis.cache.find(
(emoji) => (emoji.name = "πŸ’œ")
);

message.react(emoji);

const filter = (reaction) => {
return reaction.emoji.name == 'πŸ’œ'}

const collector = rulesMessage.createReactionCollector({filter});

collector.on('collect', (reaction, member) => {
console.log(`${member} has been verified from clicking ${reaction}`);

})



},
};
module.exports = {
name: 'ruleVerify',

async execute(client){

const rulesMessage = client.guild.channels.message.cache.id('1116202445916348497')
const message = await message.reply({
content: `React here!`,
fetchReply: true,
});

const emoji = client.emojis.cache.find(
(emoji) => (emoji.name = "πŸ’œ")
);

message.react(emoji);

const filter = (reaction) => {
return reaction.emoji.name == 'πŸ’œ'}

const collector = rulesMessage.createReactionCollector({filter});

collector.on('collect', (reaction, member) => {
console.log(`${member} has been verified from clicking ${reaction}`);

})



},
};
5 Replies
d.js toolkit
d.js toolkitβ€’2y 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.
Snapper
SnapperOPβ€’2y ago
No errors are coming up
sexy dark chocolate
sexy dark chocolateβ€’2y ago
const message = Γ wait message.reply()? That function is not being called
Snapper
SnapperOPβ€’2y ago
oh, sorry you can ignore that. It's empty code atm message.react(emoji) is also empty code atm
Snapper
SnapperOPβ€’2y ago
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
Want results from more Discord servers?
Add your server