This commit is contained in:
Lee 2024-07-05 22:58:32 +01:00
parent 6dc801dda6
commit ccdeebdc1c

@ -79,11 +79,8 @@ public class UserService implements EventListener {
* @return The user * @return The user
*/ */
public BatUser getUser(@NonNull String id) { public BatUser getUser(@NonNull String id) {
User user = DiscordService.JDA.getUserById(id); User user = DiscordService.JDA.retrieveUserById(id).complete();
if (user == null) { if (user == null || user.isBot()) {
return null;
}
if (user.isBot()) {
return null; return null;
} }
return getUser(id, null); return getUser(id, null);