parent
953598131d
commit
ef7c90777b
1 changed files with 1 additions and 1 deletions
|
@ -322,7 +322,7 @@ class Player {
|
||||||
// Gets guild queue
|
// Gets guild queue
|
||||||
let queue = this.queues.find((g) => g.guildID === guildID);
|
let queue = this.queues.find((g) => g.guildID === guildID);
|
||||||
// If there isn't any music in the queue
|
// If there isn't any music in the queue
|
||||||
if(queue.songs.length < 2 && !firstPlay){
|
if(queue.songs.length < 2 && !firstPlay && !queue.repeatMode){
|
||||||
// Leaves the voice channel
|
// Leaves the voice channel
|
||||||
if(this.options.leaveOnEnd && !queue.stopped) queue.connection.channel.leave();
|
if(this.options.leaveOnEnd && !queue.stopped) queue.connection.channel.leave();
|
||||||
// Remoces the guild from the guilds list
|
// Remoces the guild from the guilds list
|
||||||
|
|
Loading…
Reference in a new issue