public class Route extends Object
| Modifier and Type | Method and Description |
|---|---|
static Route |
delete(String uri) |
boolean |
equals(Object obj) |
static Route |
get(String uri) |
HttpMethod |
getMethod()
Return the HTTP method for this route.
|
String |
getUriTemplate()
Return the URI template that defines this route.
|
int |
hashCode() |
DiscordWebRequest |
newRequest(Object... uriVars)
Prepare a request, expanding this route template URI with the given parameters.
|
static Route |
patch(String uri) |
static Route |
post(String uri) |
static Route |
put(String uri) |
String |
toString() |
public HttpMethod getMethod()
HttpMethod of this Routepublic DiscordWebRequest newRequest(Object... uriVars)
uriVars - the values to expand each template parameterDiscordWebRequest.exchange(discord4j.rest.request.Router)public String getUriTemplate()
Route