Fix bad request in voice gateway init

This commit is contained in:
kozabrada123 2023-10-14 11:03:50 +02:00
parent 6f3e5153ac
commit 7c143c3b28
1 changed files with 2 additions and 1 deletions

View File

@ -199,7 +199,8 @@ impl VoiceGateway {
#[allow(clippy::new_ret_no_self)]
pub async fn new(websocket_url: String) -> Result<VoiceGatewayHandle, VoiceGatewayError> {
// 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,