dont show track position

This commit is contained in:
JonnyBro 2021-12-26 14:46:18 +05:00
parent e3cc5cfa80
commit 62723c6c71
2 changed files with 2 additions and 4 deletions

View file

@ -33,7 +33,7 @@ class Np extends Command {
.setThumbnail(track.thumbnail)
.addField(message.translate("music/np:T_TITLE"), track.name + `\n${track.url}`)
.addField(message.translate("music/np:T_CHANNEL"), track.uploader.name ? track.uploader.name : "Отсутствует")
.addField(message.translate("music/np:T_DURATION"), track.formattedDuration)
.addField(message.translate("music/np:T_DURATION"), `${queue.formattedCurrentTime} / ${track.formattedDuration}`)
.setColor(data.config.embed.color)
.setFooter(data.config.embed.footer)
.setTimestamp();

View file

@ -33,8 +33,6 @@ class Queue extends Command {
return message.channel.send(embed);
};
let i = 0;
const FieldsEmbed = new Pagination.FieldsEmbed();
FieldsEmbed.embed
@ -47,7 +45,7 @@ class Queue extends Command {
.setChannel(message.channel)
.setElementsPerPage(5)
.setPageIndicator(true)
.formatField("Очередь", (track) => `${++i}. [${track.name}](${track.url})\n*Добавил ${track.member}*\n`);
.formatField("Очередь", (track) => `[${track.name}](${track.url})\n*Добавил ${track.member}*\n`);
FieldsEmbed.build();
}