mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-06-09 07:18:22 +00:00
asdf4
This commit is contained in:
parent
1679d8cd18
commit
b3ba7767f6
@ -41,7 +41,7 @@ object DiscordGuildCache {
|
|||||||
|
|
||||||
val rateLimit = result.headers["X-RateLimit-Limit"]?.toIntOrNull()
|
val rateLimit = result.headers["X-RateLimit-Limit"]?.toIntOrNull()
|
||||||
val remaining = result.headers["X-RateLimit-Remaining"]?.toIntOrNull()
|
val remaining = result.headers["X-RateLimit-Remaining"]?.toIntOrNull()
|
||||||
val resetAfter = result.headers["X-RateLimit-Reset-After"]?.toDoubleOrNull()?.toLong()
|
val resetAfter = result.headers["X-RateLimit-Reset-After"]?.toDoubleOrNull()?.toLong()?.plus(1L)
|
||||||
|
|
||||||
DiscordRatelimits.setRateLimit(rateLimit, remaining, resetAfter)
|
DiscordRatelimits.setRateLimit(rateLimit, remaining, resetAfter)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user