Skip to content

Commit

Permalink
fix help XP leaderboard with non-members
Browse files Browse the repository at this point in the history
  • Loading branch information
danthe1st committed Nov 26, 2024
1 parent 954daa7 commit 1d42fe3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public void handleButton(@NotNull ButtonInteractionEvent event, Button button) {
}

private UserData createUserData(Guild guild, Integer position, double experience, long userId, String prefix) {
Member member = guild.retrieveMemberById(userId).complete();
Member member = guild.retrieveMemberById(userId).onErrorMap(e -> null).complete();
String displayName;
if (member == null) {
displayName = String.valueOf(userId);
Expand Down

0 comments on commit 1d42fe3

Please sign in to comment.