From f177e409f145cfd237df345796f99615d90d068c Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Tue, 4 Jan 2022 21:22:41 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/Music/autoplay.js | 2 +- commands/Music/np.js | 2 +- commands/Music/play.js | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/commands/Music/autoplay.js b/commands/Music/autoplay.js index e015fc72..c80c123f 100644 --- a/commands/Music/autoplay.js +++ b/commands/Music/autoplay.js @@ -23,7 +23,7 @@ class AutoPlay extends Command { if (!voice) return message.error("music/play:NO_VOICE_CHANNEL"); if (!queue) return message.error("music/play:NOT_PLAYING"); - const autoplay = queue.toggleAutoplay() + const autoplay = queue.toggleAutoplay(); message.success(`music/autoplay:SUCCESS_${autoplay ? "ENABLED" : "DISABLED"}`); } diff --git a/commands/Music/np.js b/commands/Music/np.js index 296c5635..048f90e0 100644 --- a/commands/Music/np.js +++ b/commands/Music/np.js @@ -33,7 +33,7 @@ class Np extends Command { queue.repeatMode ? queue.repeatMode === 2 ? "Очереди" - : "Текущей песни" + : "Трека" : "Выкл" }\` | Автовоспроизведение: \`${queue.autoplay ? "Вкл" : "Выкл"}\``; diff --git a/commands/Music/play.js b/commands/Music/play.js index eb69b20f..0942c53e 100644 --- a/commands/Music/play.js +++ b/commands/Music/play.js @@ -18,11 +18,10 @@ class Play extends Command { } async run(message, args) { - const name = args.join(" "); - if (!name) return message.error("music/play:MISSING_SONG_NAME"); - const voice = message.member.voice.channel; + const name = args.join(" "); if (!voice) return message.error("music/play:NO_VOICE_CHANNEL"); + if (!name) return message.error("music/play:MISSING_SONG_NAME"); // Check my permissions const perms = voice.permissionsFor(this.client.user);