Bot not receiving DM's
This is my bots code.
It doesnt log anything when the message is in the dms but it does when when its sent in a guild.
In my bot.js I have
With the
ClientIntents()
being
Also no errors come7 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by OPPing me if you have a response
We highly recommend only specifying the intents you actually need.
- Note, that
98303
, 32767
or whatever other magic number you read that represents "all intents", gets outdated as soon as new intents are introduced.
- The number will always represent the same set of intents, and will not include new ones. There is no magic "all intents" bit.
To receive direct message events on "messageCreate"
with your bot, you will need:
- The DirectMessages
gateway intent
- The Channel
partial settingUnknown User•3mo ago
Message Not Public
Sign In & Join Server To View
Ik that part, I just have all of them for now
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
Thank you so much @Jö🌈🦄 ,
It was the partial that was missing.