Package net.dv8tion.jda.api.requests
package net.dv8tion.jda.api.requests
Discord API communication features.
The RestAction
interface can be found throughout JDA and allows
to specify how the Requester should deal with rate limits.
It has extensions with additional functionalities in net.dv8tion.jda.api.requests.restaction
.
In the case of a failed Request the RestAction will be provided with an ErrorResponseException
which contains a ErrorResponse
representing the failure cause!
-
ClassDescriptionConstants representing main gateway close codes with association to an explaining message.Constants for easy use in
ErrorResponseException
andErrorHandler
.FluentRestAction<T,R extends FluentRestAction<T, R>> Interface used to mixin the customization parameters forRestActions
.Flags which enable or disable specific events from the discord gateway.Enum used to specify the HTTP method to use for a request.Request<T>Internal class used for representing HTTP requests.Internal class used to represent HTTP responses or request failures.RestAction<T>A class representing a terminal between the user and the discord API.Configuration for REST-request handling.RestFuture<T>Implementation ofCompletableFuture
used forRestAction.submit()
.Interface used to handle requests to the Discord API.Global rate-limit store.Configuration for the rate-limiter.Type representing a pending request.Routes for API endpoints.A bucket is determined via the Path+Method+Major in the following way: Get Hash from Path+Method (we call this route) Get bucket from Hash+Major (we call this bucketid)