diff --git a/src/Structures/Queue.ts b/src/Structures/Queue.ts index aa18865..fabe0b3 100644 --- a/src/Structures/Queue.ts +++ b/src/Structures/Queue.ts @@ -169,6 +169,8 @@ class Queue { this._streamTime = 0; if (resource && resource.metadata) this.previousTracks.push(resource.metadata); + this.player.emit("trackEnd", this, resource.metadata); + if (!this.tracks.length && this.repeatMode === QueueRepeatMode.OFF) { if (this.options.leaveOnEnd) this.destroy(); this.player.emit("queueEnd", this);