public class Response
extends java.lang.Object
| Constructor and Description |
|---|
Response(javax.net.ssl.HttpsURLConnection connection) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
getRateLimit()
Gets the current rate limit.
|
java.lang.Integer |
getRateLimitGlobal()
Gets the global rate limit value.
|
java.lang.Integer |
getRateLimitRemaining()
Gets the amount of calls remaining before we are limited.
|
java.lang.Long |
getRateLimitReset()
Gets the epoch time of when the rate limit will be reset.
|
java.lang.Integer |
getRateLimitResetAfter()
Gets the amount of seconds until the rate limit resets.
|
int |
getStatusCode()
Gets the status response code that Discord sent us.
|
java.lang.String |
toString() |
public Response(javax.net.ssl.HttpsURLConnection connection)
throws java.io.IOException
java.io.IOExceptionpublic int getStatusCode()
@Nullable public java.lang.Integer getRateLimitGlobal()
@Nullable public java.lang.Integer getRateLimit()
@Nullable public java.lang.Integer getRateLimitRemaining()
public java.lang.Long getRateLimitReset()
public java.lang.Integer getRateLimitResetAfter()
public java.lang.String toString()
toString in class java.lang.Object