mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-23 00:23:17 +00:00
Update voiceStateUpdate.js
This commit is contained in:
parent
1a10374015
commit
206eacc307
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user