From 66f7a45f605b3ec2315994f8f8d5ac6e3ea2db4e Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Mon, 6 May 2024 21:23:24 +0500 Subject: [PATCH] show lover user as a string --- base/User.js | 2 +- commands/Economy/profile.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/base/User.js b/base/User.js index 16900a3c..8faf497d 100644 --- a/base/User.js +++ b/base/User.js @@ -103,7 +103,7 @@ userSchema.method("getAchievements", async function () { let dim = 0; for (let i = 0; i < images.length; i++) { - await ctx.drawImage(images[i], dim, 10, 350, 200); + ctx.drawImage(images[i], dim, 10, 350, 200); dim += 200; } diff --git a/commands/Economy/profile.js b/commands/Economy/profile.js index d6715167..2abf5b93 100644 --- a/commands/Economy/profile.js +++ b/commands/Economy/profile.js @@ -112,7 +112,7 @@ class Profile extends BaseCommand { }, { name: interaction.translate("economy/profile:LOVER"), - value: !userData.lover ? interaction.translate("common:NOT_DEFINED") : lover.getUsername(), + value: !userData.lover ? interaction.translate("common:NOT_DEFINED") : lover.toString(), inline: true, }, {