Skip to content

Commit

Permalink
refac(command): XP cards now show the correct rank instead of just "1"
Browse files Browse the repository at this point in the history
(#87)
  • Loading branch information
Seb committed Apr 20, 2022
1 parent 8dd34fb commit a1e0298
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ private void sendLevelCard(CommandContext context, Member member, long serverID)

byte[] xpCard = xpService.getExperienceCard(member.getUser().getAvatarUrl(),
userXP.getCurrentExperience(), xpService.xpNeededForLevel(userXP.getNextLevel()),
userXP.getCurrentLevel(), 1, member.getUser().getName(), member.getUser().getDiscriminator(), "#F24548",
userXP.getCurrentLevel(), xpService.getUserLeaderboardPosition(serverID, member.getId()),
member.getUser().getName(), member.getUser().getDiscriminator(), "#F24548",
"#3B43D5", "#2F3136");
context.replyWithFile(xpCard, "xpcard.png");
}
Expand Down

0 comments on commit a1e0298

Please sign in to comment.