diff --git a/package.json b/package.json index 0795178..5c2f22b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "discord-player", - "version": "1.3.7", + "version": "1.3.8", "description": "Complete framework to facilitate music commands using discord.js v12", "main": "index.js", "scripts": { diff --git a/src/Player.js b/src/Player.js index 372e13a..4c70516 100644 --- a/src/Player.js +++ b/src/Player.js @@ -66,6 +66,8 @@ class Player { // Search for a queue for this channel let queue = this.queues.find((g) => g.connection.channel.id === oldState.channelID); if(queue){ + // If the channel is not empty + if(queue.connection.channel.members.size > 1) return; // Disconnect from the voice channel queue.connection.channel.leave(); // Delete the queue