Package org.javacord.api.util.rest
Interface RestRequestResponseInformation
-
public interface RestRequestResponseInformationSome information about a rest request response.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DiscordApigetApi()Gets the discord api instance which created the request.Optional<String>getBody()Gets the body of the response as string.intgetCode()Gets the response code of the response.RestRequestInformationgetRequest()Gets the request which this response answered.
-
-
-
Method Detail
-
getApi
DiscordApi getApi()
Gets the discord api instance which created the request.- Returns:
- The responsible discord api instance.
-
getRequest
RestRequestInformation getRequest()
Gets the request which this response answered.- Returns:
- The request which this response answered.
-
getCode
int getCode()
Gets the response code of the response.- Returns:
- The response code of the response.
-
-