From d3442c282f675b4fd5e4e59c1e7eb04feb84c137 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Sat, 6 Aug 2022 21:27:08 +0500 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=B0=20=D0=BF=D0=BE=D0=B4=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D1=81=D1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/Music/loop.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/commands/Music/loop.js b/commands/Music/loop.js index 2616f96d..6ccc3b82 100644 --- a/commands/Music/loop.js +++ b/commands/Music/loop.js @@ -76,14 +76,14 @@ class Loop extends BaseCommand { collector.on("collect", async i => { const type = i?.values[0]; - const mode = type === 3 ? QueueRepeatMode.AUTOPLAY : - type === 2 ? QueueRepeatMode.QUEUE : - type === 1 ? QueueRepeatMode.TRACK : QueueRepeatMode.OFF; + const mode = type === "3" ? QueueRepeatMode.AUTOPLAY : + type === "2" ? QueueRepeatMode.QUEUE : + type === "1" ? QueueRepeatMode.TRACK : QueueRepeatMode.OFF; queue.setRepeatMode(mode); return i.update({ - content: interaction.translate(`music/loop:${type === 3 ? "AUTOPLAY_ENABLED" : - type === 2 ? "QUEUE_ENABLED" : type === 1 ? "TRACK_ENABLED" : "LOOP_DISABLED"}`), + content: interaction.translate(`music/loop:${type === "3" ? "AUTOPLAY_ENABLED" : + type === "2" ? "QUEUE_ENABLED" : type === "1" ? "TRACK_ENABLED" : "LOOP_DISABLED"}`), components: [] }); });