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")
});

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
Was this page helpful?