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

Forward shutdown reason to awaitStatus exception #2268

Merged
merged 1 commit into from Nov 2, 2022

Conversation

MinnDevelopment
Copy link
Member

Pull Request Etiquette

Changes

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

Closes Issue: NaN

Description

This provides the context of shutdowns to the exceptions throw by awaitStatus:

Exception in thread "main" java.lang.IllegalStateException: Was shutdown trying to await status.
Reason: You tried turning on an intent you aren't allowed to use. For more information check https://jda.wiki/using-jda/troubleshooting/#im-getting-closecode4014-disallowed-intents
	at net.dv8tion.jda.internal.JDAImpl.awaitStatus(JDAImpl.java:494)
	at net.dv8tion.jda.api.JDA.awaitStatus(JDA.java:324)
	at net.dv8tion.jda.api.JDA.awaitReady(JDA.java:374)

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

Successfully merging this pull request may close these issues.

None yet

1 participant