forked from Fascinated/Bat
fix npe part 2
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);
|
log.error("Failed to find user \"{}\" after {} retries.", id, retries);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
User user = DiscordService.JDA.getUserById(id);
|
User user = DiscordService.JDA.retrieveUserById(id).complete();
|
||||||
if (user == null) {
|
if (user == null) {
|
||||||
return getUser(id, retries + 1);
|
return getUser(id, retries + 1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user