From e3c4edfc2c752a43c787c0519eed1e24058d85b4 Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Tue, 19 Mar 2024 19:01:45 +0500 Subject: [PATCH] fix leaderboards --- commands/Economy/leaderboard.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/Economy/leaderboard.js b/commands/Economy/leaderboard.js index 8fa57dbb..0fb698b0 100644 --- a/commands/Economy/leaderboard.js +++ b/commands/Economy/leaderboard.js @@ -79,7 +79,7 @@ class Leaderboard extends BaseCommand { money += `${data.money}\n`; } - embed.fields = [ + embed.data.fields = [ { name: interaction.translate("common:USER"), value: userNames, @@ -120,7 +120,7 @@ class Leaderboard extends BaseCommand { xp.push(`${data.xp} / ${5 * (data.level * data.level) + 80 * data.level + 100}`); } - embed.fields = [ + embed.data.fields = [ { name: interaction.translate("common:USER"), value: userNames.join("\n"), @@ -163,7 +163,7 @@ class Leaderboard extends BaseCommand { rep += `${data.rep}\n`; } - embed.fields = [ + embed.data.fields = [ { name: interaction.translate("common:USER"), value: userNames,