Issue setting command as NSFW

Hello, I'm updating my bot's commands to be NSFW, but my updates are removing my command's options. For context, this command works, and my deploy-commands.js file also works. The only change I've made is that I've added .setNSFW(true) to my command. If I remove .setNSFW and re-deploy my commands the options come back. Does anyone have any ideas on how I can troubleshoot this? I'm currently checking if the commands are being used in NSFW channels using if/else statements, so I'd like to just do this on the command level instead. discord.js: 14.14.1 node: 21.1.0 data: new SlashCommandBuilder() .setName('smash') .setNSFW(true) .setDescription('Start a smash or pass poll') .addStringOption(option => option.setName('type') .setDescription('Basic: no prompts! Weird: gross prompts!') .setRequired(true) .addChoices( {name:'basic', value:'basic'}, {name:'weird', value:'weird'}, )),
1 Reply
d.js toolkit
d.js toolkit13mo 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!
Want results from more Discord servers?
Add your server