Class HttpRequestEvent

java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.http.HttpRequestEvent
All Implemented Interfaces:
GenericEvent

public class HttpRequestEvent extends Event
Indicates that a RestAction has been executed.

Depending on the request and its result not all values have to be populated.

  • Constructor Details

  • Method Details

    • getRequest

      @Nonnull public Request<?> getRequest()
    • getRequestBody

      @Nullable public okhttp3.RequestBody getRequestBody()
    • getRequestBodyRaw

      @Nullable public Object getRequestBodyRaw()
    • getRequestHeaders

      @Nullable public okhttp3.Headers getRequestHeaders()
    • getRequestRaw

      @Nullable public okhttp3.Request getRequestRaw()
    • getResponse

      @Nullable public Response getResponse()
    • getResponseBody

      @Nullable public okhttp3.ResponseBody getResponseBody()
    • getResponseBodyAsArray

      @Nullable public DataArray getResponseBodyAsArray()
    • getResponseBodyAsObject

      @Nullable public DataObject getResponseBodyAsObject()
    • getResponseBodyAsString

      @Nullable public String getResponseBodyAsString()
    • getResponseHeaders

      @Nullable public okhttp3.Headers getResponseHeaders()
    • getResponseRaw

      @Nullable public okhttp3.Response getResponseRaw()
    • getCFRays

      @Nonnull public Set<String> getCFRays()
    • getRestAction

      @Nonnull public RestAction<?> getRestAction()
    • getRoute

      @Nonnull public net.dv8tion.jda.internal.requests.Route.CompiledRoute getRoute()
    • isRateLimit

      public boolean isRateLimit()