From c428335a56827cd7e78d394af3504ee75558a5ab Mon Sep 17 00:00:00 2001 From: Snowflake107 Date: Sat, 8 May 2021 15:32:46 +0545 Subject: [PATCH] remove --- src/Player.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Player.ts b/src/Player.ts index a48b96a..d1abeee 100644 --- a/src/Player.ts +++ b/src/Player.ts @@ -822,9 +822,9 @@ export class Player extends EventEmitter { queue.tracks = queue.tracks.filter((t) => t !== trackFound); } } else { - trackFound = queue.tracks.find((s) => s === track); + trackFound = queue.tracks.find((s) => s.url === track.url); if (trackFound) { - queue.tracks = queue.tracks.filter((s) => s !== trackFound); + queue.tracks = queue.tracks.filter((s) => s.url !== trackFound.url); } }