mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 21:24:59 +05:00
dont show track position
This commit is contained in:
parent
e3cc5cfa80
commit
62723c6c71
2 changed files with 2 additions and 4 deletions
|
@ -33,7 +33,7 @@ class Np extends Command {
|
||||||
.setThumbnail(track.thumbnail)
|
.setThumbnail(track.thumbnail)
|
||||||
.addField(message.translate("music/np:T_TITLE"), track.name + `\n${track.url}`)
|
.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_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)
|
.setColor(data.config.embed.color)
|
||||||
.setFooter(data.config.embed.footer)
|
.setFooter(data.config.embed.footer)
|
||||||
.setTimestamp();
|
.setTimestamp();
|
||||||
|
|
|
@ -33,8 +33,6 @@ class Queue extends Command {
|
||||||
return message.channel.send(embed);
|
return message.channel.send(embed);
|
||||||
};
|
};
|
||||||
|
|
||||||
let i = 0;
|
|
||||||
|
|
||||||
const FieldsEmbed = new Pagination.FieldsEmbed();
|
const FieldsEmbed = new Pagination.FieldsEmbed();
|
||||||
|
|
||||||
FieldsEmbed.embed
|
FieldsEmbed.embed
|
||||||
|
@ -47,7 +45,7 @@ class Queue extends Command {
|
||||||
.setChannel(message.channel)
|
.setChannel(message.channel)
|
||||||
.setElementsPerPage(5)
|
.setElementsPerPage(5)
|
||||||
.setPageIndicator(true)
|
.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();
|
FieldsEmbed.build();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue