1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-12-22 21:13:18 +00:00

Update voiceStateUpdate.js

This commit is contained in:
MatteZ02 2020-05-07 12:52:52 +03:00
parent 1a10374015
commit 206eacc307

View File

@ -20,7 +20,7 @@ module.exports = {
}
if (oldState.channel.members.size === 1 && oldState.channel === queue.voiceChannel || change) {
setTimeout(() => {
if (!queue) return;
if (!queue || !queue.connection.dispatcher || queue.connection.dispatcher === null) return;
if (queue.voiceChannel.members.size === 1) {
queue.songs = [];
queue.looping = false;
@ -30,4 +30,4 @@ module.exports = {
}, 120000);
}
}
}
}