Skip to content

Commit

Permalink
Clarify error message about incomplete voice state
Browse files Browse the repository at this point in the history
  • Loading branch information
freyacodes committed Nov 14, 2023
1 parent cb14d44 commit 7655511
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ class PlayerRestHandler(
}

playerUpdate.voice.ifPresent {
//discord sometimes send a partial server update missing the endpoint, which can be ignored.
// Discord sometimes sends a partial voice server update missing the endpoint, which can be ignored.
if (it.endpoint.isEmpty() || it.token.isEmpty() || it.sessionId.isEmpty()) {
throw ResponseStatusException(HttpStatus.BAD_REQUEST, "Partial voice state update: $it")
throw ResponseStatusException(HttpStatus.BAD_REQUEST, "Partial Lavalink voice state: $it")
}
}

Expand Down

0 comments on commit 7655511

Please sign in to comment.