From e10ca0ae74297c0a3db02ca15df3b2f9cf554bc1 Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Thu, 24 Aug 2023 19:00:24 +0500 Subject: [PATCH] update footers --- commands/Economy/leaderboard.js | 12 +++++++++--- commands/General/boosters.js | 4 ++-- commands/Music/queue.js | 6 ++++-- commands/Owner/servers.js | 4 ++-- 4 files changed, 17 insertions(+), 9 deletions(-) diff --git a/commands/Economy/leaderboard.js b/commands/Economy/leaderboard.js index a9b068e7..26c96f40 100644 --- a/commands/Economy/leaderboard.js +++ b/commands/Economy/leaderboard.js @@ -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], diff --git a/commands/General/boosters.js b/commands/General/boosters.js index 28363ee5..1ec19778 100644 --- a/commands/General/boosters.js +++ b/commands/General/boosters.js @@ -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); } diff --git a/commands/Music/queue.js b/commands/Music/queue.js index 5c82460c..2ea5f38e 100644 --- a/commands/Music/queue.js +++ b/commands/Music/queue.js @@ -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); } diff --git a/commands/Owner/servers.js b/commands/Owner/servers.js index 2fb9a693..ad899f80 100644 --- a/commands/Owner/servers.js +++ b/commands/Owner/servers.js @@ -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); }