messageReactionAdd not fired

Hi 👋 , The event messageReactionAdd is not fired when I try to detect when a reaction is added to a message. My code :
client.on("messageReactionAdd", (messageReaction, user) => {
console.log("Test")
});
client.on("messageReactionAdd", (messageReaction, user) => {
console.log("Test")
});
const { Client, Collection, GatewayIntentBits, Partials } = require("discord.js");
require('dotenv').config();

const client = new Client({
intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent, GatewayIntentBits.GuildMessageReactions, GatewayIntentBits.GuildEmojisAndStickers, GatewayIntentBits.DirectMessages, GatewayIntentBits.DirectMessageReactions], partials: [Partials.Channel, Partials.Reaction]
});
module.exports = client;

// Global Variables
client.commands = new Collection();
client.slashCommands = new Collection();

// Initializing the project
require("./handler")(client);

client.login(process.env.DISCORD_TOKEN);
const { Client, Collection, GatewayIntentBits, Partials } = require("discord.js");
require('dotenv').config();

const client = new Client({
intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent, GatewayIntentBits.GuildMessageReactions, GatewayIntentBits.GuildEmojisAndStickers, GatewayIntentBits.DirectMessages, GatewayIntentBits.DirectMessageReactions], partials: [Partials.Channel, Partials.Reaction]
});
module.exports = client;

// Global Variables
client.commands = new Collection();
client.slashCommands = new Collection();

// Initializing the project
require("./handler")(client);

client.login(process.env.DISCORD_TOKEN);
Discord.JS version : 14.0.0-dev.1654819804-2791c86. Thanks in advance Mysterious_Dev
2 Replies
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Mysterious_Dev
Mysterious_DevOP•3y ago
Thanks, It's working
Want results from more Discord servers?
Add your server