Nulling connection after bot is disconnected

This commit is contained in:
Christer Warén 2021-08-21 18:29:59 +03:00
parent 751f9989eb
commit 3cb54c9470

View File

@ -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);
}