🐛 Fix queueEnd event

This commit is contained in:
Androz2091 2020-12-26 22:10:39 +01:00
parent e018dcaefe
commit 806603c1b7

View file

@ -678,7 +678,7 @@ class Player extends EventEmitter {
return queue.emit('musicStop') return queue.emit('musicStop')
} }
// Emit end event // Emit end event
return queue.emit('queueEnd', queue.firstMessage, queue) return this.emit('queueEnd', queue.firstMessage, queue)
} }
// if the track needs to be the next one // if the track needs to be the next one
if (!queue.repeatMode && !firstPlay) queue.tracks.shift() if (!queue.repeatMode && !firstPlay) queue.tracks.shift()