From 7c143c3b28b522e0333b33d82058487b44df7c2e Mon Sep 17 00:00:00 2001 From: kozabrada123 <59031733+kozabrada123@users.noreply.github.com> Date: Sat, 14 Oct 2023 11:03:50 +0200 Subject: [PATCH] Fix bad request in voice gateway init --- src/voice.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/voice.rs b/src/voice.rs index e6583b0..76aaddb 100644 --- a/src/voice.rs +++ b/src/voice.rs @@ -199,7 +199,8 @@ impl VoiceGateway { #[allow(clippy::new_ret_no_self)] pub async fn new(websocket_url: String) -> Result { // Append the needed things to the websocket url - let processed_url = format!("wss://{}?v=4", websocket_url); + let processed_url = format!("wss://{}/?v=4", websocket_url); + debug!("Created voice socket url: {}", processed_url.clone()); let (websocket_stream, _) = match connect_async_tls_with_config( &processed_url,