Skip to content

Error - No subcommand group specified for interaction. While Having SubcommandGroup and Subcommand ( root ) #7761

Closed Answered by imranbarbhuiya
Batman4234 asked this question in Q&A
Discussion options

You must be logged in to vote

Subcommand group and Subcommand are default to required = true. So when a user uses your Subcommand but not subcommandgroup, it'll throw error. This was changed in main branch so in v14 for Subcommandgroup required is default to false. For now u can pass required = false like this to avoid the error

interaction.options.getSubcommandGroup(false)

U can check this pr to know more
#7217

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by almostSouji
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #7760 on April 08, 2022 18:32.