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?
3 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 OPThe Client option for specifying any partials is
partials
, not Partials
- lowercase p
: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.