From 46b3119f7900416dc750d03e9553c1c4a216f133 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Thu, 21 Jan 2021 13:25:38 +0200 Subject: [PATCH] Temporary fix voiceStateUpdate --- client/events/voiceStateUpdate.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/events/voiceStateUpdate.js b/client/events/voiceStateUpdate.js index f35ee6a..11e6a36 100644 --- a/client/events/voiceStateUpdate.js +++ b/client/events/voiceStateUpdate.js @@ -5,6 +5,7 @@ module.exports = { let change = false; const radio = client.radio.get(newState.guild.id); if (!radio) return; + /* if (newState.member.id === client.user.id && oldState.member.id === client.user.id) { if (newState.channel === null) { client.funcs.statisticsUpdate(client, newState.guild, radio); @@ -29,7 +30,7 @@ module.exports = { radio.voiceChannel = newState.channel; radio.connection = newState.connection; } - } + }*/ if (oldState.channel.members.size === 1 && oldState.channel === radio.voiceChannel || change) { setTimeout(() => { if (!radio || !radio.connection.dispatcher || !radio.connection.dispatcher === null) return;