From c2e189c2fac192fde4747b7c373a27e462551580 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Sun, 26 Dec 2021 13:32:11 +0500 Subject: [PATCH] fix filters --- commands/Music/filter.js | 2 +- commands/Music/filters.js | 2 +- languages/en-US/music/lyrics.json | 2 +- languages/ru-RU/music/lyrics.json | 1 - 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/commands/Music/filter.js b/commands/Music/filter.js index e714a85c..deb24bc6 100644 --- a/commands/Music/filter.js +++ b/commands/Music/filter.js @@ -26,7 +26,7 @@ class Filter extends Command { const filter = args[0]; if (!filter) return message.error("music/filter:MISSING_FILTER", { prefix: data.guild.prefix }); - if (filter === "off" && queue.filters?.length) { + if (filter === "off" && queue.filters.length) { queue.setFilter(false); message.success("music/filter:REMOVING_FILTER"); } else if (Object.keys(this.client.player.filters).includes(args[0])) { diff --git a/commands/Music/filters.js b/commands/Music/filters.js index a242457d..e38931ae 100644 --- a/commands/Music/filters.js +++ b/commands/Music/filters.js @@ -28,7 +28,7 @@ class Filters extends Command { Object.keys(this.client.player.filters).forEach((filterName) => { const array = filtersStatuses[0].length > filtersStatuses[1].length ? filtersStatuses[1] : filtersStatuses[0]; - array.push(this.client.player.filters[filterName] + " : " + (queue.filters[filterName] ? this.client.customEmojis.success : this.client.customEmojis.error)); + array.push(filterName + " : " + (queue.filters[filterName] ? this.client.customEmojis.success : this.client.customEmojis.error)); }); const list = new Discord.MessageEmbed() diff --git a/languages/en-US/music/lyrics.json b/languages/en-US/music/lyrics.json index 43306bd0..f73e9882 100644 --- a/languages/en-US/music/lyrics.json +++ b/languages/en-US/music/lyrics.json @@ -4,7 +4,7 @@ "EXAMPLES": "{{prefix}}lyrics Skyfall", "LYRICS_OF": "🎤 {{songName}} lyrics", "AND_MORE": "\n**And more...**", - "REST": "Expand", + "CLICK_HERE": "Click here for full lyrics", "MISSING_SONG_NAME": "Please specify a song name!", "NO_LYRICS_FOUND": "No lyrics found for `{{songName}}`!" } \ No newline at end of file diff --git a/languages/ru-RU/music/lyrics.json b/languages/ru-RU/music/lyrics.json index e127fe99..acc5e907 100644 --- a/languages/ru-RU/music/lyrics.json +++ b/languages/ru-RU/music/lyrics.json @@ -5,7 +5,6 @@ "LYRICS_OF": "🎤 Текст {{songName}}", "AND_MORE": "\n**и т.д...**", "CLICK_HERE": "Нажмите сюда, чтобы открыть ссылку на слова к этой песне", - "REST": "Больше", "MISSING_SONG_NAME": "Укажите название трека!", "NO_LYRICS_FOUND": "Текста для `{{songName}}` не найдено!" } \ No newline at end of file