✨ Emit playlistAdd even if it's playing
This commit is contained in:
parent
3cc3360595
commit
ea84785e31
1 changed files with 1 additions and 0 deletions
|
@ -545,6 +545,7 @@ class Player extends EventEmitter {
|
||||||
} else {
|
} else {
|
||||||
const track = playlist.tracks.shift()
|
const track = playlist.tracks.shift()
|
||||||
const queue = await this._createQueue(message, track).catch((e) => this.emit('error', e, message))
|
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.emit('trackStart', message, queue.tracks[0], queue)
|
||||||
this._addTracksToQueue(message, playlist.tracks)
|
this._addTracksToQueue(message, playlist.tracks)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue