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,
|
value: money,
|
||||||
inline: true,
|
inline: true,
|
||||||
},
|
},
|
||||||
);
|
)
|
||||||
|
.setFooter(client.config.embed.footer)
|
||||||
|
.setTimestamp();
|
||||||
|
|
||||||
interaction.editReply({
|
interaction.editReply({
|
||||||
embeds: [embed],
|
embeds: [embed],
|
||||||
|
@ -151,7 +153,9 @@ class Leaderboard extends BaseCommand {
|
||||||
value: xp.join("\n"),
|
value: xp.join("\n"),
|
||||||
inline: true,
|
inline: true,
|
||||||
},
|
},
|
||||||
]);
|
])
|
||||||
|
.setFooter(client.config.embed.footer)
|
||||||
|
.setTimestamp();
|
||||||
|
|
||||||
interaction.editReply({
|
interaction.editReply({
|
||||||
embeds: [embed],
|
embeds: [embed],
|
||||||
|
@ -197,7 +201,9 @@ class Leaderboard extends BaseCommand {
|
||||||
value: rep,
|
value: rep,
|
||||||
inline: true,
|
inline: true,
|
||||||
},
|
},
|
||||||
);
|
)
|
||||||
|
.setFooter(client.config.embed.footer)
|
||||||
|
.setTimestamp();
|
||||||
|
|
||||||
interaction.editReply({
|
interaction.editReply({
|
||||||
embeds: [embed],
|
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 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()
|
const embed = new EmbedBuilder()
|
||||||
.setColor(client.config.embed.color)
|
|
||||||
.setFooter(client.config.embed.footer)
|
|
||||||
.setTitle(interaction.translate("general/boosters:BOOSTERS_LIST"))
|
.setTitle(interaction.translate("general/boosters:BOOSTERS_LIST"))
|
||||||
.setDescription(info)
|
.setDescription(info)
|
||||||
|
.setColor(client.config.embed.color)
|
||||||
|
.setFooter(client.config.embed.footer)
|
||||||
.setTimestamp();
|
.setTimestamp();
|
||||||
embeds.push(embed);
|
embeds.push(embed);
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,7 +40,7 @@ class Queue extends BaseCommand {
|
||||||
if (!queue) return interaction.error("music/play:NOT_PLAYING");
|
if (!queue) return interaction.error("music/play:NOT_PLAYING");
|
||||||
|
|
||||||
let currentPage = 0;
|
let currentPage = 0;
|
||||||
let embeds = generateQueueEmbeds(interaction, queue);
|
let embeds = generateQueueEmbeds(client, interaction, queue);
|
||||||
|
|
||||||
const row = new ActionRowBuilder().addComponents(
|
const row = new ActionRowBuilder().addComponents(
|
||||||
new ButtonBuilder().setCustomId("queue_prev_page").setLabel(interaction.translate("music/queue:PREV_PAGE")).setStyle(ButtonStyle.Primary).setEmoji("⬅️"),
|
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.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {import("discord-player").GuildQueue} queue
|
* @param {import("discord-player").GuildQueue} queue
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
function generateQueueEmbeds(interaction, queue) {
|
function generateQueueEmbeds(client, interaction, queue) {
|
||||||
const embeds = [];
|
const embeds = [];
|
||||||
const currentTrack = queue.currentTrack;
|
const currentTrack = queue.currentTrack;
|
||||||
let k = 10;
|
let k = 10;
|
||||||
|
@ -194,6 +195,7 @@ function generateQueueEmbeds(interaction, queue) {
|
||||||
currentTrack.requestedBy
|
currentTrack.requestedBy
|
||||||
}\n\n**${interaction.translate("music/queue:NEXT")}**\n${info}`,
|
}\n\n**${interaction.translate("music/queue:NEXT")}**\n${info}`,
|
||||||
)
|
)
|
||||||
|
.setFooter(client.config.embed.footer)
|
||||||
.setTimestamp();
|
.setTimestamp();
|
||||||
embeds.push(embed);
|
embeds.push(embed);
|
||||||
}
|
}
|
||||||
|
|
|
@ -129,10 +129,10 @@ function generateServersEmbeds(interaction, servers) {
|
||||||
.join("\n");
|
.join("\n");
|
||||||
|
|
||||||
const embed = new EmbedBuilder()
|
const embed = new EmbedBuilder()
|
||||||
.setColor(interaction.client.config.embed.color)
|
|
||||||
.setFooter(interaction.client.config.embed.footer)
|
|
||||||
.setTitle(interaction.translate("owner/servers:SERVERS_LIST"))
|
.setTitle(interaction.translate("owner/servers:SERVERS_LIST"))
|
||||||
.setDescription(info)
|
.setDescription(info)
|
||||||
|
.setColor(interaction.client.config.embed.color)
|
||||||
|
.setFooter(interaction.client.config.embed.footer)
|
||||||
.setTimestamp();
|
.setTimestamp();
|
||||||
embeds.push(embed);
|
embeds.push(embed);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue