In DM commands is not working
I tried to many times but I am not getting where I messed up. I want some commands to run in clients dm. Basically prefix commands.
Using discord.js: v14.18.0
node version : v22.14.0
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 settingthese are done in client class already

those aren't valid partials
use the Partials enum
just like you did with intents
wait le me try
@Octobacca 🌈 thanks its working now
I messed with partials