Skip to content

Add missing NO_MUTUAL_GUILDS ErrorResponse#3083

Open
srnyx wants to merge 4 commits into
discord-jda:masterfrom
srnyx:patch-1
Open

Add missing NO_MUTUAL_GUILDS ErrorResponse#3083
srnyx wants to merge 4 commits into
discord-jda:masterfrom
srnyx:patch-1

Conversation

@srnyx
Copy link
Copy Markdown

@srnyx srnyx commented Apr 12, 2026

Pull Request Etiquette

  • I have checked the PRs for upcoming features/bug fixes.
  • I have read the contributing guidelines.
  • I applied the code formatter to my changes with ./gradlew format

Changes

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

Description

Added missing ErrorResponse NO_MUTUAL_GUILDS for when the currently logged in account tries to message a user that they share no mutual guilds with

Sources:

Apologies for the patch-1 branch name, I started it all in GitHub cause it was easier

Copilot AI review requested due to automatic review settings April 12, 2026 02:26
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds newly documented Discord API error codes to JDA’s ErrorResponse enum and updates the meaning text for error code 50008 to match current Discord documentation.

Changes:

  • Added missing ErrorResponse enum constants for several Discord error codes (stickers/invites/age/entitlements/sku/request/message/user/index/guild uploads/OIDC).
  • Updated the meaning string for CANNOT_MESSAGE_VC (50008) to “Cannot send messages in a non-text channel”.

Comment thread src/main/java/net/dv8tion/jda/api/requests/ErrorResponse.java
@srnyx srnyx changed the title Add missing ErrorResponses Add missing NO_MUTUAL_GUILDS ErrorResponse Apr 12, 2026
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.

2 participants