From d52a74677f458d755dfc79d3b27fb64f18629477 Mon Sep 17 00:00:00 2001 From: duncte123 Date: Wed, 22 Nov 2023 22:43:22 +0100 Subject: [PATCH] Fix compilation issues --- dashboard/src/main/kotlin/com/dunctebot/jda/JDARestClient.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/src/main/kotlin/com/dunctebot/jda/JDARestClient.kt b/dashboard/src/main/kotlin/com/dunctebot/jda/JDARestClient.kt index b319fc685..aed031d7e 100644 --- a/dashboard/src/main/kotlin/com/dunctebot/jda/JDARestClient.kt +++ b/dashboard/src/main/kotlin/com/dunctebot/jda/JDARestClient.kt @@ -42,7 +42,7 @@ class JDARestClient(token: String) { val authConfig = AuthorizationConfig(token) val threadConfig = ThreadingConfig.getDefault() - threadConfig.setRateLimitPool(Executors.newScheduledThreadPool(5) { + threadConfig.setRateLimitScheduler(Executors.newScheduledThreadPool(5) { val t = Thread(it, "dunctebot-rest-thread") t.isDaemon = true return@newScheduledThreadPool t