From 494f5740482cc65879526d55c450b6998c699db0 Mon Sep 17 00:00:00 2001 From: Minzkraut Date: Mon, 12 Sep 2022 23:03:30 +0200 Subject: [PATCH] Profile: Fix call to refactored getLevel function it is now user.level().currentLevel --- commands/profile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/profile.js b/commands/profile.js index 6f04311..1fe1a08 100644 --- a/commands/profile.js +++ b/commands/profile.js @@ -32,7 +32,7 @@ module.exports = { profileTemplate = profileTemplate.replace(/{{PROFILE_TEXT}}/g, customStatus ); profileTemplate = profileTemplate.replace(/{{HEADER_COLOR}}/g, '190,31,97'); profileTemplate = profileTemplate.replace(/{{CC}}/g, await Card.count({where: {userId: user.id}})); - profileTemplate = profileTemplate.replace(/{{LVL}}/g, await user.getLevel()); + profileTemplate = profileTemplate.replace(/{{LVL}}/g, await user.level().currentLevel); let slots = ['slotOne', 'slotTwo', 'slotThree', 'slotFour']; let renderedCards = [];