messageCreate event not getting emitted #6443
-
Please describe the problem you are having in as much detail as possible: Include a reproducible code sample here, if possible: const dc = require('discord.js');
const client = new dc.Client({intents: [dc.Intents.FLAGS.GUILDS]});
client.on('messageCreate', (a) => {
console.log(a.content)
})
client.on('ready', () => {
console.log('ready as ' + client.user.tag)
})
client.login(token) Further details:
Relevant client options:
|
Beta Was this translation helpful? Give feedback.
Answered by
vladfrangu
Aug 15, 2021
Replies: 2 comments 5 replies
-
You're missing the GUILD_MESSAGES intent alongside the GUILDS one |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
marku782
-
Same issue with the GUILD_MESSAGES intent. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You're missing the GUILD_MESSAGES intent alongside the GUILDS one