Костыль отменяется

This commit is contained in:
JonnyBro 2022-03-26 19:46:20 +05:00
parent e028bef8c8
commit 218e44cb5d
3 changed files with 5 additions and 7 deletions

View file

@ -33,7 +33,7 @@ class Queue extends Command {
dynamic: true
})
})
.addField(message.translate("music/np:CURRENTLY_PLAYING"), `[${queue.songs[0].name}](${queue.songs[0].url})\n*${message.translate("music/queue:ADDED")} ${queue.songs[0].member || message.translate("music/queue:PLAYLIST")}*\n`)
.addField(message.translate("music/np:CURRENTLY_PLAYING"), `[${queue.songs[0].name}](${queue.songs[0].url})\n*${message.translate("music/queue:ADDED")} ${queue.songs[0].member}*\n`)
.setColor(data.config.embed.color);
return message.reply({
embeds: [embed]
@ -50,7 +50,7 @@ class Queue extends Command {
dynamic: true
})
})
.addField(message.translate("music/np:CURRENTLY_PLAYING"), `[${queue.songs[0].name}](${queue.songs[0].url})\n*${message.translate("music/queue:ADDED")} ${queue.songs[0].member || message.translate("music/queue:PLAYLIST")}*\n`);
.addField(message.translate("music/np:CURRENTLY_PLAYING"), `[${queue.songs[0].name}](${queue.songs[0].url})\n*${message.translate("music/queue:ADDED")} ${queue.songs[0].member}*\n`);
FieldsEmbed
.setArray(queue.songs[1] ? queue.songs.slice(1, queue.songs.length) : [])
.setAuthorizedUsers([message.author.id])
@ -59,7 +59,7 @@ class Queue extends Command {
.setDeleteOnTimeout(true)
.setDisabledNavigationEmojis(["jump"])
.setPageIndicator(true)
.formatField(message.translate("music/queue:TITLE"), (track) => `**${queue.songs.indexOf(track)}**. [${track.name}](${track.url})\n*${message.translate("music/queue:ADDED")} ${track.member || message.translate("music/queue:PLAYLIST")}*\n`)
.formatField(message.translate("music/queue:TITLE"), (track) => `**${queue.songs.indexOf(track)}**. [${track.name}](${track.url})\n*${message.translate("music/queue:ADDED")} ${track.member}*\n`)
.build();
}
}

View file

@ -3,6 +3,5 @@
"USAGE": "{{prefix}}queue",
"EXAMPLES": "{{prefix}}queue",
"TITLE": "Очередь",
"ADDED": "Добавил",
"PLAYLIST": "Плейлист"
"ADDED": "Добавил"
}

View file

@ -3,6 +3,5 @@
"USAGE": "{{prefix}}queue",
"EXAMPLES": "{{prefix}}queue",
"TITLE": "Черга",
"ADDED": "Додав",
"PLAYLIST": "Плейлист"
"ADDED": "Додав"
}