parent
4a75dae262
commit
42e84271c2
1 changed files with 2 additions and 0 deletions
|
@ -1056,6 +1056,8 @@ class Player extends EventEmitter {
|
||||||
this.emit('botDisconnect', queue.firstMessage)
|
this.emit('botDisconnect', queue.firstMessage)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// check if the bot is in a channel
|
||||||
|
if (!queue.voiceConnection || !queue.voiceConnection.channel) return
|
||||||
// process leaveOnEmpty checks
|
// process leaveOnEmpty checks
|
||||||
if (!this.options.leaveOnEmpty) return
|
if (!this.options.leaveOnEmpty) return
|
||||||
// If the member joins a voice channel
|
// If the member joins a voice channel
|
||||||
|
|
Loading…
Reference in a new issue