From 6c0d00d851e0fda63d8f40b962159d033d5fbb56 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Sun, 19 Dec 2021 16:52:00 +0500 Subject: [PATCH] fix :) --- commands/Music/loop.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/commands/Music/loop.js b/commands/Music/loop.js index fdbc8bc8..aa9dfac6 100644 --- a/commands/Music/loop.js +++ b/commands/Music/loop.js @@ -26,18 +26,18 @@ class Loop extends Command { if (args[0].toLowerCase() === "queue") { if (!queue.loopMode) { - client.player.setLoopMode(message, true); + this.client.player.setLoopMode(message, true); message.success("music:/loop:QUEUE", { loop: "включён" }); } else { - client.player.setLoopMode(message, false); + this.client.player.setLoopMode(message, false); message.success("music:/loop:QUEUE", { loop: "отключён" }); }; } else if (args[0].toLowerCase() === "song") { if (!queue.repeatMode) { - client.player.setRepeatMode(message, true); + this.client.player.setRepeatMode(message, true); message.success("music:/loop:QUEUE", { loop: "включён" }); } else if (args[1].toLowerCase() == "off") { - client.player.setRepeatMode(message, false); + this.client.player.setRepeatMode(message, false); message.success("music:/loop:QUEUE", { loop: "отключён" }); }; };