Many slash commands with the same beginning

I want to make commands that start with the same name but have different sub-commands. Is this only possible via SlashCommandBuilder()? For my code structure is now
module.exports = {
name: "commandname",
category: "test",
options: [
{
name: 'namesubcommand',
description: 'description',
type: 1,
options: [
{
name: 'optionname',
description: 'second description',
type: 3,
required: true
}
]
}
],
. . .
module.exports = {
name: "commandname",
category: "test",
options: [
{
name: 'namesubcommand',
description: 'description',
type: 1,
options: [
{
name: 'optionname',
description: 'second description',
type: 3,
required: true
}
]
}
],
. . .
And with the same command names, obviously, it gives me Application command names must be unique, because I'm trying to specify the same name for several slash commands
2 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Squid
Squid2y ago
The limitations apply if you're using the builders or not. You can include multiple subcommands in one command, and you can also look into subcommand groups
Want results from more Discord servers?
Add your server