diff --git a/src/Player.js b/src/Player.js index 6ae6bc4..fec1e81 100644 --- a/src/Player.js +++ b/src/Player.js @@ -1056,6 +1056,8 @@ class Player extends EventEmitter { this.emit('botDisconnect', queue.firstMessage) } + // check if the bot is in a channel + if (!queue.voiceConnection || !queue.voiceConnection.channel) return // process leaveOnEmpty checks if (!this.options.leaveOnEmpty) return // If the member joins a voice channel