Subcommands
Hey i have 3 slash commands, setup, setup_image, setup_video, i tried making the setup_image into "setup image" and it worked but the setup command stopped showing. How can i do it while keeping the setup command there?
npm list discord.js and node node -v version?✅ Marked as resolved by OPUsing subcommands or subcommand groups will make your base command unusable. You can't send the base command as a valid command if you also have as subcommands or subcommand groups
data: new SlashCommandBuilder()
.setName('setup')
.setDescription('Setup commands')
.addSubcommand((subcommand) =>
subcommand
.setName('image')
.setDescription("in a specific channel")
.addChannelOption((option) =>
option
.setName("channel")
.setDescription("Image channel")
.setRequired(true)
.addChannelTypes(0)
)
),data: new SlashCommandBuilder()
.setName("setup")
.setDescription("Setup channels")
),/permissions/permissions add | removesetup