Global Commands Not Showing In DM

Node v18.18.0 Discord.js v14.15.2 Sorry for the repost, but the last thread was bugged, as it was showing it was 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.
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
Unknown User
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View
Energy Drink Addict
That was it, thank you.
Want results from more Discord servers?
Add your server