Skip to content

Commit

Permalink
Fix misleading error message
Browse files Browse the repository at this point in the history
  • Loading branch information
freyacodes authored Nov 14, 2023
1 parent cb14d44 commit 0b174f2
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 voice server update: $it")
}
}

Expand Down

0 comments on commit 0b174f2

Please sign in to comment.