Emit playlistAdd even if it's playing

This commit is contained in:
Androz2091 2021-02-26 13:46:57 +01:00
parent 3cc3360595
commit ea84785e31

View file

@ -545,6 +545,7 @@ class Player extends EventEmitter {
} else {
const track = playlist.tracks.shift()
const queue = await this._createQueue(message, track).catch((e) => this.emit('error', e, message))
this.emit('playlistAdd', message, queue, playlist)
this.emit('trackStart', message, queue.tracks[0], queue)
this._addTracksToQueue(message, playlist.tracks)
}