🐛 Fix queueEnd event
This commit is contained in:
parent
e018dcaefe
commit
806603c1b7
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue