From 30ccaeaa126274fd72dfc200e95a738afae24cde Mon Sep 17 00:00:00 2001 From: L0SER <65214509+L0SER8228@users.noreply.github.com> Date: Mon, 26 Jul 2021 09:14:21 +0530 Subject: [PATCH] Update Queue.ts --- src/Structures/Queue.ts | 2 ++ 1 file changed, 2 insertions(+) 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);