aboutsummaryrefslogtreecommitdiff
path: root/commands/rank.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-04-15 19:46:25 +0200
committerAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-04-15 19:46:25 +0200
commitd673c055d26b9e3e56d136864946c7dbcd271426 (patch)
tree08753a6074915c58ace1c06ae03b426abb9cb730 /commands/rank.go
parent5655170779702fb8e390ab948bee7cff1f3fde87 (diff)
fix(command): (again) bad xp shown for /rank in prochain niveau
Diffstat (limited to 'commands/rank.go')
-rw-r--r--commands/rank.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/rank.go b/commands/rank.go
index fe05ba8..d056de1 100644
--- a/commands/rank.go
+++ b/commands/rank.go
@@ -51,7 +51,7 @@ func Rank(s *discordgo.Session, i *discordgo.InteractionCreate) {
msg,
lvl,
c.XP,
- nxtLvlXP-xp.XPForLevel(lvl),
+ nxtLvlXP-c.XP,
)).Send()
if err != nil {
utils.SendAlert("rank.go - Sending rank", err.Error())