From f437797bed500ac0e95a4aa7163006ac06236b89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Wed, 4 Aug 2021 14:42:37 +0300 Subject: [PATCH] Updated voiceStateUpdate --- src/client/events/voiceStateUpdate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/events/voiceStateUpdate.js b/src/client/events/voiceStateUpdate.js index 5415519..b4b60d6 100644 --- a/src/client/events/voiceStateUpdate.js +++ b/src/client/events/voiceStateUpdate.js @@ -37,7 +37,7 @@ module.exports = { if (newState.channel !== radio.voiceChannel) { change = true; radio.voiceChannel = newState.channel; - radio.connection = getVoiceConnection(voiceChannel.guild.id); + radio.connection = getVoiceConnection(newState.channel.guild.id); //radio.connection = await newState.channel.join(); } }