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
d.js toolkit
d.js toolkit5d ago
- 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 OP
d.js docs
d.js docs5d ago
To receive direct message events on "messageCreate" with your bot, you will need: - The DirectMessages gateway intent - The Channel partial setting
Kaizo
KaizoOP5d ago
these are done in client class already
Kaizo
KaizoOP5d ago
No description
chewie
chewie5d ago
those aren't valid partials use the Partials enum just like you did with intents
Kaizo
KaizoOP5d ago
wait le me try @Octobacca 🌈 thanks its working now I messed with partials

Did you find this page helpful?