From e079b035b92144cbe968a8577573b8cab19f6ac1 Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Wed, 10 Jul 2024 22:26:38 +0500 Subject: [PATCH] fix /boosters --- commands/General/boosters.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/General/boosters.js b/commands/General/boosters.js index 10112cdc..85d9f6b7 100644 --- a/commands/General/boosters.js +++ b/commands/General/boosters.js @@ -124,7 +124,7 @@ class Boosters extends BaseCommand { const boosters = (await interaction.guild.members.fetch()).filter(m => m.premiumSince); if (boosters.size === 0) return interaction.error("general/boosters:NO_BOOSTERS", null, { edit: true }); - const embeds = generateBoostersEmbeds(client, interaction, boosters); + const embeds = generateBoostersEmbeds(interaction, boosters); const row = new ActionRowBuilder().addComponents( new ButtonBuilder().setCustomId("boosters_prev_page").setStyle(ButtonStyle.Primary).setEmoji("⬅️"), @@ -159,7 +159,7 @@ function generateBoostersEmbeds(interaction, boosters) { let j = i; k += 10; - const info = current.map(member => `${++j}. ${member.toString()} | ${interaction.translate("general/boosters:BOOSTER_SINCE")}: **${Math.floor(new Date(member.premiumSince).getTime() / 1000)}**`).join("\n"); + const info = current.map(member => `${++j}. ${member.toString()} | ${interaction.translate("general/boosters:BOOSTER_SINCE")}: `).join("\n"); const embed = interaction.client.embed({ title: interaction.translate("general/boosters:BOOSTERS_LIST"),