From 5d0e93fc263030519d51d801be76d78a56334ef0 Mon Sep 17 00:00:00 2001 From: Snowflake107 Date: Thu, 13 May 2021 11:19:44 +0545 Subject: [PATCH] method: queue#destroy --- src/Structures/Queue.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Structures/Queue.ts b/src/Structures/Queue.ts index a8fa7a5..5375996 100644 --- a/src/Structures/Queue.ts +++ b/src/Structures/Queue.ts @@ -197,6 +197,14 @@ export class Queue extends EventEmitter { return Object.keys(this.filters).filter((f) => !enabled.includes(f)); } + /** + * Destroys this queue + * @returns {Boolean} + */ + destroy() { + return this.player.stop(this.firstMessage); + } + /** * String representation of this Queue * @returns {String}