Commands won't show up in DMs
I cannot for the LIFE of me get commands from my bot to show up in dms with other users.
9 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!npm node -v
returns 9.2.0
npm list discord.js
returns 14.19.3Here's an example of what my application does.


It takes an image and changes its file extension to .gif so that it can be saved in the discord gif favorites folder easily.
:method: ContextMenuCommandBuilder#setContexts()
[email protected]
Sets the contexts of this command.It shows up in my dms with the bot but not other users.
Oh! Let me check..
Like this?
I updated it with this code and restarted my discord, but it still isn't working in dms with others.
This application is also a bot that runs in a couple servers, so I'm also wondering if that could be causing interference?
Oh, actually, it's because my bot has stopped working entirely - it's crashing on startup
Well, I couldn't figure out how to fix this or w/e, but deleting that line of code fixed it and it started working!
It Just Works...