From 0b174f2e5018f3a32cf8c60412f7375bbef402c9 Mon Sep 17 00:00:00 2001 From: Freya Arbjerg Date: Tue, 14 Nov 2023 13:20:34 +0100 Subject: [PATCH] Fix misleading error message --- .../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..18e1e3a7b 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 voice server update: $it") } }