diff --git a/src/main/java/net/discordjug/javabot/systems/user_commands/leaderboard/ThanksLeaderboardSubcommand.java b/src/main/java/net/discordjug/javabot/systems/user_commands/leaderboard/ThanksLeaderboardSubcommand.java index 1c283c4be..c29fc0de7 100644 --- a/src/main/java/net/discordjug/javabot/systems/user_commands/leaderboard/ThanksLeaderboardSubcommand.java +++ b/src/main/java/net/discordjug/javabot/systems/user_commands/leaderboard/ThanksLeaderboardSubcommand.java @@ -97,7 +97,7 @@ private List> 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)); }