From 29d3fe3701fc3801d1a08ebe3cb368926172c64d Mon Sep 17 00:00:00 2001 From: Liam Date: Fri, 5 Jul 2024 23:13:12 +0100 Subject: [PATCH] fix npe part 2 --- src/main/java/cc/fascinated/bat/common/UserUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cc/fascinated/bat/common/UserUtils.java b/src/main/java/cc/fascinated/bat/common/UserUtils.java index a37b351..15febb3 100644 --- a/src/main/java/cc/fascinated/bat/common/UserUtils.java +++ b/src/main/java/cc/fascinated/bat/common/UserUtils.java @@ -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); }