fix npe part 2
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 1m9s
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 1m9s
This commit is contained in:
parent
4cc48412f7
commit
29d3fe3701
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user