public class WebhookEditSpec extends Object implements AuditSpec<WebhookModifyRequest>
Webhook
entity.Constructor and Description |
---|
WebhookEditSpec() |
Modifier and Type | Method and Description |
---|---|
WebhookModifyRequest |
asRequest() |
String |
getReason()
Returns the current audit log reason set on the spec.
|
WebhookEditSpec |
setAvatar(Image avatar)
Sets the image of the modified
Webhook . |
WebhookEditSpec |
setName(String name)
Sets the name of the modified
Webhook . |
WebhookEditSpec |
setReason(String reason)
Sets the reason to show in the audit logs when the spec is built.
|
public WebhookEditSpec setName(String name)
Webhook
.name
- The webhook name.public WebhookEditSpec setAvatar(@Nullable Image avatar)
Webhook
.avatar
- The webhook image.public WebhookEditSpec setReason(String reason)
AuditSpec
setReason
in interface AuditSpec<WebhookModifyRequest>
reason
- The audit log reason.@Nullable public String getReason()
AuditSpec
getReason
in interface AuditSpec<WebhookModifyRequest>
public WebhookModifyRequest asRequest()
asRequest
in interface Spec<WebhookModifyRequest>