From 969336e8b1fb0052a0d7b6f065fe3f64462e16e6 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Fri, 4 Feb 2022 17:02:07 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9C=D0=B5=D0=BB=D0=BA=D0=B8=D0=B5=20=D0=BF?= =?UTF-8?q?=D1=80=D0=B0=D0=B2=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/Music/loop.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/Music/loop.js b/commands/Music/loop.js index feff4d30..57c174c2 100644 --- a/commands/Music/loop.js +++ b/commands/Music/loop.js @@ -18,12 +18,12 @@ class Loop extends Command { async run(message, args) { const voice = message.member.voice.channel; - const type = args[0]; const queue = this.client.player.getQueue(message); if (!voice) return message.error("music/play:NO_VOICE_CHANNEL"); if (!queue) return message.error("music/play:NOT_PLAYING"); + const type = args[0]; let mode = null; if (type === "queue") { mode = this.client.player.setRepeatMode(message, 2);