Update Player.ts
Fix typo
This commit is contained in:
parent
6d9997dd4f
commit
972d2641bd
1 changed files with 1 additions and 1 deletions
|
@ -309,7 +309,7 @@ export class Player extends EventEmitter {
|
|||
const prioritisedTrack = tracks.splice(startFromIndex, 1);
|
||||
tracks.unshift(prioritisedTrack);
|
||||
const queue = this._addTracksToQueue(message, tracks);
|
||||
this.emit(PlayerEvents.PLAYLIST_ADD, message, queue, playlist);
|
||||
this.emit(PlayerEvents.PLAYLIST_ADD, message, queue, pl);
|
||||
} else {
|
||||
const track = tracks[startFromIndex];
|
||||
const queue = (await this._createQueue(message, track).catch((e) => void this.emit(PlayerEvents.ERROR, e, message))) as Queue;
|
||||
|
|
Loading…
Reference in a new issue