mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-22 23:53:17 +00:00
Added radio.message?.delete in voiceStateUpdate
This commit is contained in:
parent
01514454bf
commit
0d795a6efb
@ -17,6 +17,7 @@ module.exports = {
|
|||||||
client.funcs.statisticsUpdate(client, newState.guild, radio);
|
client.funcs.statisticsUpdate(client, newState.guild, radio);
|
||||||
radio.connection?.destroy();
|
radio.connection?.destroy();
|
||||||
radio.audioPlayer?.stop();
|
radio.audioPlayer?.stop();
|
||||||
|
radio.message?.delete();
|
||||||
client.funcs.logger('Radio', 'Stream stopped' + " / " + newState.guild.id);
|
client.funcs.logger('Radio', 'Stream stopped' + " / " + newState.guild.id);
|
||||||
return client.radio.delete(newState.guild.id);
|
return client.radio.delete(newState.guild.id);
|
||||||
}
|
}
|
||||||
@ -39,6 +40,7 @@ module.exports = {
|
|||||||
client.funcs.statisticsUpdate(client, newState.guild, radio);
|
client.funcs.statisticsUpdate(client, newState.guild, radio);
|
||||||
radio.connection?.destroy();
|
radio.connection?.destroy();
|
||||||
radio.audioPlayer?.stop();
|
radio.audioPlayer?.stop();
|
||||||
|
radio.message?.delete();
|
||||||
client.funcs.logger('Radio', 'Stream stopped' + " / " + newState.guild.id);
|
client.funcs.logger('Radio', 'Stream stopped' + " / " + newState.guild.id);
|
||||||
client.radio.delete(oldState.guild.id);
|
client.radio.delete(oldState.guild.id);
|
||||||
}
|
}
|
||||||
@ -58,6 +60,7 @@ module.exports = {
|
|||||||
client.funcs.statisticsUpdate(client, newState.guild, radio);
|
client.funcs.statisticsUpdate(client, newState.guild, radio);
|
||||||
radio.connection?.destroy();
|
radio.connection?.destroy();
|
||||||
radio.audioPlayer?.stop();
|
radio.audioPlayer?.stop();
|
||||||
|
radio.message?.delete();
|
||||||
client.funcs.logger('Radio', 'Stream stopped' + " / " + newState.guild.id);
|
client.funcs.logger('Radio', 'Stream stopped' + " / " + newState.guild.id);
|
||||||
client.radio.delete(newState.guild.id);
|
client.radio.delete(newState.guild.id);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user