13
rated 0 times
[
18]
[
5]
/ answers: 1 / hits: 6213
/ 3 Years ago, thu, october 14, 2021, 12:00:00
I've just recently finished upgrading my Discord.js bot to v13 and now the client.on(messageCreate) function doesn't fire? None of my code in it ever runs and I'm really confused as to why.
Before anybody asks, I have already set my intents.
const client = new Discord.Client({
intents: [ Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES, Intents.FLAGS.DIRECT_MESSAGES ],
partials: ['MESSAGE', 'CHANNEL', 'REACTION'],
});
I have two functions, the client.on fires but the message doesn't
client.on('ready', () => {
console.log(`Logged in as ${client.user.tag}!`);
});
client.on('messageCreate', msg => {
console.log(anything)
}
More From » node.js