From 39d7acaa9ec15dc241865db80a54f720268b5409 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Wed, 4 Aug 2021 15:03:58 +0300 Subject: [PATCH] Updated voiceStateUpdate --- src/client/events/voiceStateUpdate.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/client/events/voiceStateUpdate.js b/src/client/events/voiceStateUpdate.js index 7899630..bc9b24e 100644 --- a/src/client/events/voiceStateUpdate.js +++ b/src/client/events/voiceStateUpdate.js @@ -13,6 +13,9 @@ module.exports = { if (!radio) return; if (newState.member.id === client.user.id && oldState.member.id === client.user.id) { + console.log(oldState); + console.log(newState); + if (newState.channel === null) { client.funcs.statisticsUpdate(client, newState.guild, radio); radio.audioPlayer.stop();