From 8902d06057a3f4d73e998b0e948c4ae5e988d186 Mon Sep 17 00:00:00 2001 From: Snowflake107 Date: Sat, 19 Jun 2021 19:57:13 +0545 Subject: [PATCH] update queue --- src/Structures/Queue.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Structures/Queue.ts b/src/Structures/Queue.ts index c690b59..f746b60 100644 --- a/src/Structures/Queue.ts +++ b/src/Structures/Queue.ts @@ -150,7 +150,7 @@ class Queue { */ setPaused(paused?: boolean) { if (!this.connection) return false; - return paused ? this.connection.pause() : this.connection.resume(); + return paused ? this.connection.pause(true) : this.connection.resume(); } /** @@ -180,8 +180,7 @@ class Queue { */ setRepeatMode(mode: QueueRepeatMode) { if (![QueueRepeatMode.OFF, QueueRepeatMode.QUEUE, QueueRepeatMode.TRACK].includes(mode)) throw new Error(`Unknown repeat mode "${mode}"!`); - const prev = this.repeatMode; - if (mode === prev) return false; + if (mode === this.repeatMode) return false; this.repeatMode = mode; return true; }