diff --git a/src/Structures/Queue.ts b/src/Structures/Queue.ts index 8cca1cd..d8cfe2a 100644 --- a/src/Structures/Queue.ts +++ b/src/Structures/Queue.ts @@ -67,12 +67,13 @@ class Queue { } addTrack(track: Track) { - this.addTracks([track]); + this.tracks.push(track); this.player.emit("trackAdd", this, track); } addTracks(tracks: Track[]) { this.tracks.push(...tracks); + this.player.emit("tracksAdd", this, tracks); } setPaused(paused?: boolean) { diff --git a/src/types/types.ts b/src/types/types.ts index 815b0bd..3e06853 100644 --- a/src/types/types.ts +++ b/src/types/types.ts @@ -132,6 +132,7 @@ export interface PlayerEvents { searchInvalidResponse: () => any; searchResults: () => any; trackAdd: (queue: Queue, track: Track) => any; + tracksAdd: (queue: Queue, track: Track[]) => any; trackStart: (queue: Queue, track: Track) => any; }