Shaffan
Shaffan
DIAdiscord.js - Imagine an app
Created by Shaffan on 1/22/2025 in #djs-questions
Events.MessageCreate does not invoke
const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent] });
const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent] });
client.on(Events.MessageCreate, message => {
if (message.author.bot) return;
console.log(`Message received: ${message.content}`);
});
client.on(Events.MessageCreate, message => {
if (message.author.bot) return;
console.log(`Message received: ${message.content}`);
});
Nothing is logged.
3 replies