public class WebhookEditSpec extends Object implements AuditSpec<discord4j.discordjson.json.WebhookModifyRequest>
Webhook
entity.Constructor and Description |
---|
WebhookEditSpec() |
Modifier and Type | Method and Description |
---|---|
discord4j.discordjson.json.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 |
setChannel(Snowflake id)
Sets the channel ID 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 setChannel(@Nullable Snowflake id)
Webhook
.id
- the new channel id this webhook should be moved topublic WebhookEditSpec setReason(String reason)
AuditSpec
@Nullable public String getReason()
AuditSpec