From 75e31dc6da4f62727602992497c4fb7b4e37add4 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Sat, 6 Aug 2022 21:13:50 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D1=84=D0=B8=D0=BA?= =?UTF-8?q?=D1=81=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/Music/loop.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/Music/loop.js b/commands/Music/loop.js index 2840f376..cf590864 100644 --- a/commands/Music/loop.js +++ b/commands/Music/loop.js @@ -75,9 +75,9 @@ class Loop extends BaseCommand { }); collector.on("collect", async i => { - const type = QueueRepeatMode[msg?.values[0]]; + const type = QueueRepeatMode[i?.values[0]]; queue.setRepeatMode(type); - i.update({ + return i.update({ content: interaction.translate(`music/loop:${type === QueueRepeatMode.AUTOPLAY ? "AUTOPLAY_ENABLED" : type === QueueRepeatMode.QUEUE ? "QUEUE_ENABLED" : type === QueueRepeatMode.TRACK ? "TRACK_ENABLED" : "LOOP_DISABLED"}`), components: []