From e611143f58ec549a04f8035a020dd54b73f36a5a Mon Sep 17 00:00:00 2001 From: Snowflake107 Date: Sun, 13 Jun 2021 13:56:54 +0545 Subject: [PATCH] properly delete queue --- src/Player.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Player.ts b/src/Player.ts index f76a63c..8b33207 100644 --- a/src/Player.ts +++ b/src/Player.ts @@ -33,7 +33,12 @@ class DiscordPlayer extends EventEmitter { deleteQueue(guild: Snowflake) { const prev = this.getQueue(guild); + + try { + prev.destroy(); + } catch {} this.queues.delete(guild); + return prev; }