Package net.dv8tion.jda.api.requests
Class Request<T>
java.lang.Object
net.dv8tion.jda.api.requests.Request<T>
-
Constructor Summary
ConstructorDescriptionRequest
(net.dv8tion.jda.internal.requests.RestActionImpl<T> restAction, Consumer<? super T> onSuccess, Consumer<? super Throwable> onFailure, BooleanSupplier checks, boolean shouldQueue, RequestBody body, Object rawBody, long deadline, boolean priority, net.dv8tion.jda.internal.requests.Route.CompiledRoute route, org.apache.commons.collections4.map.CaseInsensitiveMap<String, String> headers) -
Method Summary
-
Constructor Details
-
Request
public Request(net.dv8tion.jda.internal.requests.RestActionImpl<T> restAction, Consumer<? super T> onSuccess, Consumer<? super Throwable> onFailure, BooleanSupplier checks, boolean shouldQueue, RequestBody body, Object rawBody, long deadline, boolean priority, net.dv8tion.jda.internal.requests.Route.CompiledRoute route, org.apache.commons.collections4.map.CaseInsensitiveMap<String, String> headers)
-
-
Method Details
-
onSuccess
-
onFailure
-
onFailure
-
onCancelled
public void onCancelled() -
onTimeout
public void onTimeout() -
getJDA
-
getRestAction
-
getOnSuccess
-
getOnFailure
-
isPriority
public boolean isPriority() -
isSkipped
public boolean isSkipped() -
getHeaders
-
getRoute
-
getBody
-
getRawBody
-
shouldQueue
public boolean shouldQueue() -
cancel
public void cancel() -
isCancelled
public boolean isCancelled() -
handleResponse
-