3ddie
3ddie
DIAdiscord.js - Imagine an app
Created by 3ddie on 12/4/2023 in #djs-questions
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'}, )),
2 replies