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!
-
Interface Summary Interface Description RestAction<T> A class representing a terminal between the user and the discord API. -
Class Summary Class Description Request<T> Response RestFuture<T> -
Enum Summary Enum Description CloseCode Constants representing main gateway close codes with association to an explaining message.ErrorResponse Constants for easy use inErrorResponseException
andErrorHandler
.GatewayIntent Flags which enable or disable specific events from the discord gateway.