From f33857b81ba87a5418b24b336fda82232871aaad Mon Sep 17 00:00:00 2001 From: WinG4merBR <68250074+WinG4merBR@users.noreply.github.com> Date: Wed, 22 Jan 2025 00:01:02 -0300 Subject: [PATCH] Update ClusterUtils --- foxy/src/main/kotlin/net/cakeyfox/foxy/utils/ClusterUtils.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/foxy/src/main/kotlin/net/cakeyfox/foxy/utils/ClusterUtils.kt b/foxy/src/main/kotlin/net/cakeyfox/foxy/utils/ClusterUtils.kt index 5600add1..cc18ffd9 100644 --- a/foxy/src/main/kotlin/net/cakeyfox/foxy/utils/ClusterUtils.kt +++ b/foxy/src/main/kotlin/net/cakeyfox/foxy/utils/ClusterUtils.kt @@ -47,7 +47,7 @@ object ClusterUtils { foxy.httpClient.get { url(cluster.clusterUrl + "/api/v1/guilds/$guildId/users/$memberId/roles") header("Content-Type", "application/json") - header("Authorization", foxy.config.others.internalApi.key) + header("Authorization", "Bearer ${foxy.config.others.internalApi.key}") } }.let { val roles = json.decodeFromString(it.bodyAsText()) as List<String>