Skip to content

Commit

Permalink
fix /leaderboard thanks for unknown users
Browse files Browse the repository at this point in the history
  • Loading branch information
danthe1st committed Nov 29, 2024
1 parent 578bf7a commit 2db1d7d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ private List<Pair<Member, Long>> getCounts(String query, Guild guild) {
while (rs.next()) {
long count = rs.getLong(1);
long userId = rs.getLong(2);
Member member = guild.retrieveMemberById(userId).complete();
Member member = guild.retrieveMemberById(userId).onErrorMap(e -> null).complete();
if (member == null) continue;
memberData.add(new Pair<>(member, count));
}
Expand Down

0 comments on commit 2db1d7d

Please sign in to comment.