Detect new reactions

guys please how can i make my bot remove all the reactions in all the messages in specific channel ? or at least make it check if any message added remove it
7 Replies
d.js toolkit
d.js toolkit14mo 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 OP
treble/luna
treble/luna14mo ago
you can listen for the messageReactionAdd evenr You cannot delete all emotes from all messages
HARRY
HARRYOP14mo ago
i do that but still when i add reaction itest isn't logged
client.on("messageReactionAdd", async (reaction, user) => {
console.log('test');

});
client.on("messageReactionAdd", async (reaction, user) => {
console.log('test');

});
treble/luna
treble/luna14mo ago
you need to enable partials
HARRY
HARRYOP14mo ago
how can i do that i actually do this
const { Client, IntentsBitField, Partials, Events } = require('discord.js');
const eventHandler = require('./handlers/eventHandler');

const client = new Client({
intents: [
IntentsBitField.Flags.Guilds,
IntentsBitField.Flags.GuildMembers,
IntentsBitField.Flags.GuildMessages,
IntentsBitField.Flags.MessageContent,
],
partials: [Partials.Message, Partials.Channel, Partials.Reaction],
});
const { Client, IntentsBitField, Partials, Events } = require('discord.js');
const eventHandler = require('./handlers/eventHandler');

const client = new Client({
intents: [
IntentsBitField.Flags.Guilds,
IntentsBitField.Flags.GuildMembers,
IntentsBitField.Flags.GuildMessages,
IntentsBitField.Flags.MessageContent,
],
partials: [Partials.Message, Partials.Channel, Partials.Reaction],
});
so i don't know if i enabled it or no
Unknown User
Unknown User14mo ago
Message Not Public
Sign In & Join Server To View
HARRY
HARRYOP14mo ago
thank u so much i saw it right now
Want results from more Discord servers?
Add your server