mirror of
https://github.com/musix-org/musix-oss
synced 2025-07-07 07:30:50 +00:00
Update 3.5
This commit is contained in:
@ -19,9 +19,13 @@ module.exports = {
|
||||
}
|
||||
}
|
||||
if (oldState.channel.members.size === 1 && oldState.channel === queue.voiceChannel || change) {
|
||||
queue.textChannel.send(client.messages.leftAlonePaused);
|
||||
queue.paused = true;
|
||||
queue.connection.dispatcher.pause(true);
|
||||
setTimeout(() => {
|
||||
if (!queue || !queue.connection.dispatcher || queue.connection.dispatcher === null) return;
|
||||
if (queue.voiceChannel.members.size === 1) {
|
||||
queue.textChannel.send(client.messages.leftAlone);
|
||||
queue.songs = [];
|
||||
queue.looping = false;
|
||||
queue.endReason = "Timeout";
|
||||
|
Reference in New Issue
Block a user