From 3cb54c94708b3377a358b4d03ee01b31f6b50973 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Sat, 21 Aug 2021 18:29:59 +0300 Subject: [PATCH] Nulling connection after bot is disconnected --- src/client/events/voiceStateUpdate.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/events/voiceStateUpdate.js b/src/client/events/voiceStateUpdate.js index c24973f..0cccc22 100644 --- a/src/client/events/voiceStateUpdate.js +++ b/src/client/events/voiceStateUpdate.js @@ -16,6 +16,7 @@ module.exports = { if (newState.channel === null) { client.funcs.statisticsUpdate(client, newState.guild, radio); + radio.connection = null; radio.audioPlayer?.stop(); return client.radio.delete(newState.guild.id); }