Skip to content

Commit acf0ea9

Browse files
committed
Add ContentType plugin to TopggStatsSender
1 parent c36d7e6 commit acf0ea9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

foxy/src/main/kotlin/net/cakeyfox/foxy/utils/analytics/TopggStatsSender.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class TopggStatsSender(
9191
return withContext(Dispatchers.IO) {
9292
val response = foxy.httpClient.post("https://top.gg/api/bots/$clientId/stats") {
9393
header("Authorization", token)
94-
accept(ContentType.Application.Json)
94+
contentType(ContentType.Application.Json)
9595
setBody(buildJsonObject {
9696
put("server_count", serverCount)
9797
put("shard_count", foxy.config.discord.totalShards)

0 commit comments

Comments
 (0)