mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-21 20:54:58 +05:00
update footers
This commit is contained in:
parent
48d5754727
commit
e10ca0ae74
4 changed files with 17 additions and 9 deletions
|
@ -97,7 +97,9 @@ class Leaderboard extends BaseCommand {
|
|||
value: money,
|
||||
inline: true,
|
||||
},
|
||||
);
|
||||
)
|
||||
.setFooter(client.config.embed.footer)
|
||||
.setTimestamp();
|
||||
|
||||
interaction.editReply({
|
||||
embeds: [embed],
|
||||
|
@ -151,7 +153,9 @@ class Leaderboard extends BaseCommand {
|
|||
value: xp.join("\n"),
|
||||
inline: true,
|
||||
},
|
||||
]);
|
||||
])
|
||||
.setFooter(client.config.embed.footer)
|
||||
.setTimestamp();
|
||||
|
||||
interaction.editReply({
|
||||
embeds: [embed],
|
||||
|
@ -197,7 +201,9 @@ class Leaderboard extends BaseCommand {
|
|||
value: rep,
|
||||
inline: true,
|
||||
},
|
||||
);
|
||||
)
|
||||
.setFooter(client.config.embed.footer)
|
||||
.setTimestamp();
|
||||
|
||||
interaction.editReply({
|
||||
embeds: [embed],
|
||||
|
|
|
@ -156,10 +156,10 @@ function generateBoostersEmbeds(client, interaction, boosters, guildData) {
|
|||
const info = current.map(member => `${++j}. ${member.toString()} | ${interaction.translate("general/boosters:BOOSTER_SINCE")}: **${client.functions.printDate(client, member.premiumSince, null, guildData.language)}**`).join("\n");
|
||||
|
||||
const embed = new EmbedBuilder()
|
||||
.setColor(client.config.embed.color)
|
||||
.setFooter(client.config.embed.footer)
|
||||
.setTitle(interaction.translate("general/boosters:BOOSTERS_LIST"))
|
||||
.setDescription(info)
|
||||
.setColor(client.config.embed.color)
|
||||
.setFooter(client.config.embed.footer)
|
||||
.setTimestamp();
|
||||
embeds.push(embed);
|
||||
}
|
||||
|
|
|
@ -40,7 +40,7 @@ class Queue extends BaseCommand {
|
|||
if (!queue) return interaction.error("music/play:NOT_PLAYING");
|
||||
|
||||
let currentPage = 0;
|
||||
let embeds = generateQueueEmbeds(interaction, queue);
|
||||
let embeds = generateQueueEmbeds(client, interaction, queue);
|
||||
|
||||
const row = new ActionRowBuilder().addComponents(
|
||||
new ButtonBuilder().setCustomId("queue_prev_page").setLabel(interaction.translate("music/queue:PREV_PAGE")).setStyle(ButtonStyle.Primary).setEmoji("⬅️"),
|
||||
|
@ -137,11 +137,12 @@ class Queue extends BaseCommand {
|
|||
|
||||
/**
|
||||
*
|
||||
* @param {import("../../base/JaBa")} client
|
||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||
* @param {import("discord-player").GuildQueue} queue
|
||||
* @returns
|
||||
*/
|
||||
function generateQueueEmbeds(interaction, queue) {
|
||||
function generateQueueEmbeds(client, interaction, queue) {
|
||||
const embeds = [];
|
||||
const currentTrack = queue.currentTrack;
|
||||
let k = 10;
|
||||
|
@ -194,6 +195,7 @@ function generateQueueEmbeds(interaction, queue) {
|
|||
currentTrack.requestedBy
|
||||
}\n\n**${interaction.translate("music/queue:NEXT")}**\n${info}`,
|
||||
)
|
||||
.setFooter(client.config.embed.footer)
|
||||
.setTimestamp();
|
||||
embeds.push(embed);
|
||||
}
|
||||
|
|
|
@ -129,10 +129,10 @@ function generateServersEmbeds(interaction, servers) {
|
|||
.join("\n");
|
||||
|
||||
const embed = new EmbedBuilder()
|
||||
.setColor(interaction.client.config.embed.color)
|
||||
.setFooter(interaction.client.config.embed.footer)
|
||||
.setTitle(interaction.translate("owner/servers:SERVERS_LIST"))
|
||||
.setDescription(info)
|
||||
.setColor(interaction.client.config.embed.color)
|
||||
.setFooter(interaction.client.config.embed.footer)
|
||||
.setTimestamp();
|
||||
embeds.push(embed);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue