fix npe part 2
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 1m9s

This commit is contained in:
Lee 2024-07-05 23:13:12 +01:00
parent 4cc48412f7
commit 29d3fe3701

View File

@ -23,7 +23,7 @@ public class UserUtils {
log.error("Failed to find user \"{}\" after {} retries.", id, retries);
return null;
}
User user = DiscordService.JDA.getUserById(id);
User user = DiscordService.JDA.retrieveUserById(id).complete();
if (user == null) {
return getUser(id, retries + 1);
}