Skip to content

Commit

Permalink
Fix jump() bug
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuayuen99 committed Aug 11, 2021
1 parent db3198c commit 8a46d12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Structures/Queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ class Queue<T = unknown> {
if (this.#watchDestroyed()) return;
const foundTrack = this.remove(track);
if (!foundTrack) throw new PlayerError("Track not found", ErrorStatusCode.TRACK_NOT_FOUND);
this.tracks.splice(1, 0, foundTrack);
this.tracks.splice(0, 0, foundTrack);

return void this.skip();
}
Expand Down

0 comments on commit 8a46d12

Please sign in to comment.