Updated stop.js & voiceStateUpdate.js

This commit is contained in:
Christer Warén committed 2021-08-04 17:46:06 +03:00
1 parent ef18a08cc6
commit 40490d80dc
2 files changed
+9 -9

No files matched your search

+2 -2
View File
@@ -9,8 +9,8 @@ module.exports = {
const radio = client.radio.get(msg.guild.id);
if (client.funcs.check(client, msg, command)) {
client.funcs.statisticsUpdate(client, msg.guild, radio);
radio.connection.destroy();
radio.audioPlayer.stop();
radio.connection?.destroy();
radio.audioPlayer?.stop();
client.radio.delete(msg.guild.id);
msg.channel.send(client.messageEmojis["stop"] + client.messages.stop);
}