Ā© 2026 Hedgehog Software, LLC
messageReactionAdd
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);
14.0.0-dev.1654819804-2791c86