My bot does not detect dm messages
I am using discord.js v14, it only detects guild messages, how can I detect dm messages?
7 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 OPTo receive direct message events on
"messageCreate"
with your bot, you will need:
- The DirectMessages
gateway intent
- The Channel
partial setting
i use this but not working
missing Channel partial
and i highly doubt you actually need all those intents
I am developing a big bot, I need it
do you actually need to detect when someone is typing in dm?
intents use resources
i added and it was fixxed