From 1533ae46a448eefd16dac4b95484eab9d05e9aef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Sat, 11 Sep 2021 17:12:53 +0300 Subject: [PATCH] Update voiceStateUpdate event --- src/client/events/voiceStateUpdate.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/client/events/voiceStateUpdate.js b/src/client/events/voiceStateUpdate.js index e6da785..283e1d6 100644 --- a/src/client/events/voiceStateUpdate.js +++ b/src/client/events/voiceStateUpdate.js @@ -16,7 +16,6 @@ module.exports = { if (newState.channel === null) { client.funcs.statisticsUpdate(client, newState.guild, radio); radio.connection?.destroy(); - radio.audioPlayer?.stop(); radio.message?.delete(); client.funcs.logger('Radio', 'Stream stopped' + " / " + newState.guild.id); return client.radio.delete(newState.guild.id); @@ -39,7 +38,6 @@ module.exports = { } catch (error) { client.funcs.statisticsUpdate(client, newState.guild, radio); radio.connection?.destroy(); - radio.audioPlayer?.stop(); radio.message?.delete(); client.funcs.logger('Radio', 'Stream stopped' + " / " + newState.guild.id); client.radio.delete(oldState.guild.id); @@ -59,7 +57,6 @@ module.exports = { if (radio.voiceChannel.members.size === 1) { client.funcs.statisticsUpdate(client, newState.guild, radio); radio.connection?.destroy(); - radio.audioPlayer?.stop(); radio.message?.delete(); client.funcs.logger('Radio', 'Stream stopped' + " / " + newState.guild.id); client.radio.delete(newState.guild.id);