fix filters

This commit is contained in:
JonnyBro 2021-12-26 13:32:11 +05:00
parent ddd1ffff4f
commit c2e189c2fa
4 changed files with 3 additions and 4 deletions

View file

@ -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])) {

View file

@ -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()

View file

@ -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}}`!"
}

View file

@ -5,7 +5,6 @@
"LYRICS_OF": "🎤 Текст {{songName}}",
"AND_MORE": "\n**и т.д...**",
"CLICK_HERE": "Нажмите сюда, чтобы открыть ссылку на слова к этой песне",
"REST": "Больше",
"MISSING_SONG_NAME": "Укажите название трека!",
"NO_LYRICS_FOUND": "Текста для `{{songName}}` не найдено!"
}