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 IllegalStateException for OptionType.MENTIONABLE #1964

Merged
merged 3 commits into from
Dec 24, 2021
Merged

Fix IllegalStateException for OptionType.MENTIONABLE #1964

merged 3 commits into from
Dec 24, 2021

Conversation

averen
Copy link
Contributor

@averen averen commented Dec 22, 2021

Pull Request Etiquette

Changes

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

Closes Issue: NaN

Description

If CommandInteraction#getCommandString is called when a MENTIONABLE option was included, OptionMapping#getAsUser and OptionMapping#getAsRole will always throw IllegalStateException regardless of the type of the resolved object.

unknown
unknown

@MinnDevelopment
Copy link
Member

Can you add the same for getAsMember?

@MinnDevelopment MinnDevelopment dismissed their stale review December 22, 2021 14:12

Missing getAsMember

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.

None yet

3 participants