Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix checks in CommandData#addSubcommand and CommandData#addSubcommandGroup #1674

Merged

Conversation

MrLetsplay2003
Copy link
Contributor

Pull Request Etiquette

Changes

  • Internal code
  • Library interface (affecting end-user code)
  • Documentation
  • Other: _____

Closes Issue: NaN

Description

Even though Discord does not allow combining command options with subcommands or subcommand groups, it is allowed to have subcommands in combination with subcommand groups on a single command. JDA currently does not allow this, as it always throws an error when trying to create such a command.
This commit simply removes setting the allowGroups and allowSubcommands flags when adding subcommands or subcommand groups.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants