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);