My discord bot doesnt respond when i write a command in DM but in server or guild it reply

I just get into discord bot stuff and trying to improve my soft skill in coding so I give a shot to develop a discord bot. Unfortunately, there are some error which is my discord does not respond in DM but only did in server. Is there any error in my code?
No description
No description
3 Replies
d.js toolkit
d.js toolkit7mo 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
TÆMBØ
TÆMBØ7mo ago
The Client option for specifying any partials is partials, not Partials - lowercase p
d.js docs
d.js docs7mo ago
:propertysignature: ClientOptions#partials @14.15.2 Structures allowed to be partial. This means events can be emitted even when they're missing all the data for a particular structure. See the "Partial Structures" topic on the guide for some important usage information, as partials require you to put checks in place when handling data.
Want results from more Discord servers?
Add your server