From bf250dcdf7307df5ffc53de9d4efd7e1db211545 Mon Sep 17 00:00:00 2001 From: Adrian Paschkowski Date: Tue, 19 Mar 2024 16:21:18 +0100 Subject: [PATCH] Fix NPE in default ban method --- .../src/main/java/org/javacord/api/entity/server/Server.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javacord-api/src/main/java/org/javacord/api/entity/server/Server.java b/javacord-api/src/main/java/org/javacord/api/entity/server/Server.java index 4591a1cf5..89f05620f 100644 --- a/javacord-api/src/main/java/org/javacord/api/entity/server/Server.java +++ b/javacord-api/src/main/java/org/javacord/api/entity/server/Server.java @@ -2172,7 +2172,7 @@ default CompletableFuture banUser(User user, Duration duration, String rea * @return A future to check if the ban was successful. */ default CompletableFuture banUser(String userId) { - return banUser(userId, null); + return banUser(userId, Duration.ZERO); } /**