From 3d054e04c44029cd09ee1f2bb73230b23539f167 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Sun, 7 Aug 2022 14:08:37 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=BE=D0=B2=D1=8B=D0=B9=20=D0=B4=D0=B5?= =?UTF-8?q?=D0=BD=D1=8C=20-=20=D0=BD=D0=BE=D0=B2=D1=8B=D0=B5=20=D1=84?= =?UTF-8?q?=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/queue.js | 2 +- commands/Music/skip.js | 1 - languages/ru-RU/music/skipto.json | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/commands/Music/queue.js b/commands/Music/queue.js index 64633e5a..6363d348 100644 --- a/commands/Music/queue.js +++ b/commands/Music/queue.js @@ -52,7 +52,7 @@ class Queue extends BaseCommand { }, { name: interaction.translate("music/queue:QUEUE"), - value: tracks.join("\n") + value: tracks.length > 0 ? tracks.join("\n") : null }, { name: "\u200b", diff --git a/commands/Music/skip.js b/commands/Music/skip.js index 6677a4f9..8b18b2fb 100644 --- a/commands/Music/skip.js +++ b/commands/Music/skip.js @@ -35,7 +35,6 @@ class Skip extends BaseCommand { if (!voice) return interaction.error("music/play:NO_VOICE_CHANNEL"); const queue = client.player.getQueue(interaction.guildId); if (!queue) return interaction.error("music/play:NOT_PLAYING"); - if (!queue.tracks[1]) return interaction.error("music/skip:NO_NEXT_SONG"); const embed = new EmbedBuilder() .setAuthor({ diff --git a/languages/ru-RU/music/skipto.json b/languages/ru-RU/music/skipto.json index 796d9e08..4ccc89b6 100644 --- a/languages/ru-RU/music/skipto.json +++ b/languages/ru-RU/music/skipto.json @@ -3,7 +3,7 @@ "USAGE": "skipto [номер]", "EXAMPLES": "skipto 3", "POSITION": "Номер трека в очереди", - "SUCCESS": "Выполнен переход на позицию {{position}", + "SUCCESS": "Выполнен переход на позицию {{position}}", "ERROR": "На позиции {{position}} ничего не найдено", "NO_PREV_SONG": "Вы не можете перейти назад, для этого используйте команду `back`!" } \ No newline at end of file