DiscordJS V 14 Not able to receive data for MessageCreate
I am able to get any other event but anything that has to do with messages just won't work.
18 Replies
Project ID:
N/A
N/A
I've tried to use Events.MessageCreate and other ways
but nothing works
and yes I enabled intents in the discord Developer Portal.
maybe the sourcecode might help out:
https://github.com/discordjs/discord.js/blob/14.15.2/packages/discord.js/src/client/actions/MessageCreate.js#L23
GitHub
discord.js/packages/discord.js/src/client/actions/MessageCreate.js ...
A powerful JavaScript library for interacting with the Discord API - discordjs/discord.js
The problem is I was originally using discord's example code.
And I simplified it as much as possible too.
what was the original example code?
And then I added the Events.MessageCreate which is refrenced somewhere else.
that didn't work so I switched over from the Events of Discord.JS
@PixelZero You need
GatewayIntentBits.GuildMessages
I had that earlier but let me try again.
MessageContent
GuildMessages
... are required
oh yeah the code snippit has it at the top
the first one
Does it work? :D
nope
Hmm wierd
yeah
Try ask in the discord.js server.
okay
the discord developers?
No .gg/djs