1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-11-10 05:10:17 +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) { if (oldState.channel.members.size === 1 && oldState.channel === queue.voiceChannel || change) {
setTimeout(() => { setTimeout(() => {
if (!queue) return; if (!queue || !queue.connection.dispatcher || queue.connection.dispatcher === null) return;
if (queue.voiceChannel.members.size === 1) { if (queue.voiceChannel.members.size === 1) {
queue.songs = []; queue.songs = [];
queue.looping = false; queue.looping = false;
@ -30,4 +30,4 @@ module.exports = {
}, 120000); }, 120000);
} }
} }
} }