Skip to content

Conversation

freya022
Copy link
Contributor

Pull Request Etiquette

Changes

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

Closes Issue: NaN

Description

This PR fixes OptionData throwing a NPE when users attempted to add choices on an option which doesn't support them.

It also prevents instantiation of OptionData with the subcommand(group) type, as far as i can tell, JDA does not do such thing

@MinnDevelopment MinnDevelopment merged commit c9405ea into discord-jda:master Mar 10, 2023
@freya022 freya022 deleted the fix/choice-add branch March 11, 2023 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants