<@U223RM5CH> Can you show the whole file?
# announcements
d
@dragas Can you show the whole file?
d
https://pastebin.com/BDEN8MZC It's just a regular rate limiter for Discord API based on OkHTTP interceptors
Seems to work when you remove
protected
modifier from
Limit
d
If
Limit
is
protected
, only subclasses of
RateLimitInterceptor
can use it. If the
companion object
has a
protected
val
with type
Limit
"subclasses of the companion object" (there is no such thing of course) would be able to use that
val
, but then not be able to use
Limit
, because they cannot be a subclass of
RateLimitInterceptor
. I think that's what's going on.
d
Eh, I guess I'll just expose it and leave it at that.
i
Interesting issue, I've reported it https://youtrack.jetbrains.com/issue/KT-21176