Added radio.message?.delete in voiceStateUpdate

This commit is contained in:
Christer Warén 2021-09-01 17:56:27 +03:00
parent 01514454bf
commit 0d795a6efb

View File

@ -17,6 +17,7 @@ module.exports = {
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,6 +40,7 @@ module.exports = {
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);
}
@ -58,6 +60,7 @@ module.exports = {
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);
}