java.io.Serializable
public class RateLimitedException
extends java.lang.Exception
429: Too Many Requests
responseConstructor | Description |
---|---|
RateLimitedException(java.lang.String route,
long retryAfter) |
|
RateLimitedException(net.dv8tion.jda.core.requests.Route.CompiledRoute route,
long retryAfter) |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getRateLimitedRoute() |
The route responsible for the rate limit bucket that is used in
the responsible
RateLimiter |
long |
getRetryAfter() |
The back-off delay in milliseconds that should be respected
before trying to query the
route again |
public RateLimitedException(net.dv8tion.jda.core.requests.Route.CompiledRoute route, long retryAfter)
public RateLimitedException(java.lang.String route, long retryAfter)
public java.lang.String getRateLimitedRoute()
RateLimiter
public long getRetryAfter()
route
again