From 7655511085347df8cb9402092c6f79c40061e65e Mon Sep 17 00:00:00 2001 From: Freya Arbjerg Date: Tue, 14 Nov 2023 13:46:57 +0100 Subject: [PATCH] Clarify error message about incomplete voice state --- .../src/main/java/lavalink/server/player/PlayerRestHandler.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LavalinkServer/src/main/java/lavalink/server/player/PlayerRestHandler.kt b/LavalinkServer/src/main/java/lavalink/server/player/PlayerRestHandler.kt index 18355d8a8..6bd043499 100644 --- a/LavalinkServer/src/main/java/lavalink/server/player/PlayerRestHandler.kt +++ b/LavalinkServer/src/main/java/lavalink/server/player/PlayerRestHandler.kt @@ -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") } }