public class WebhookAction extends RestAction<Webhook>
Webhook
Builder system created as an extension of RestAction
Webhooks
.RestAction.EmptyRestAction<T>
DEFAULT_FAILURE, DEFAULT_SUCCESS, LOG
Constructor and Description |
---|
WebhookAction(JDA api,
Route.CompiledRoute route,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
finalizeData() |
WebhookAction |
setAvatar(Icon icon)
Sets the Avatar for the custom Webhook User
|
WebhookAction |
setName(java.lang.String name)
Sets the Name for the custom Webhook User
|
complete, complete, completeAfter, getJDA, queue, queue, queue, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, submit, submit, submitAfter, submitAfter
public WebhookAction(JDA api, Route.CompiledRoute route, java.lang.String name)
public WebhookAction setName(java.lang.String name)
name
- A not-null String name for the new Webhook user.java.lang.IllegalArgumentException
- If the specified name is not in the range of 2-100.public WebhookAction setAvatar(Icon icon)
icon
- An Icon
for the new avatar.
Or null to use default avatar.public void finalizeData()