slash command DM
Node v18.18.0
Discord.js v14.15.2
Not yet resolved
At the Discord.js tutorial for DM Permissions we are told:
By default, globally-deployed commands are also available for use in DMs. You can use SlashCommandBuilder#setDMPermission() to disable this behaviour.I have followed the guide so far, including the portion regarding global slash commands. I think my code is correct for both my global command builder call, and my command However, I'm unable to command my bot through the DMs. Any help would be greatly appreciated.
1 Reply
- 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