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/permissionscommand as a valid command if you also have/permissions add | removeas subcommands or subcommand groups
setup one as guild command (since guild and global commands are different) that's the only way you can have both, but guild commands will only be available in the guild it is registered to✅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