fix(command): (again) bad xp shown for /rank in prochain niveau

This commit is contained in:
Anhgelus Morhtuuzh 2024-04-15 19:46:25 +02:00
parent 5655170779
commit d673c055d2
No known key found for this signature in database
GPG key ID: CF4550297832A29F

View file

@ -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())