Package org.javacord.core.entity.webhook
Class WebhookUpdaterDelegateImpl
- java.lang.Object
-
- org.javacord.core.entity.webhook.WebhookUpdaterDelegateImpl
-
- All Implemented Interfaces:
WebhookUpdaterDelegate
public class WebhookUpdaterDelegateImpl extends Object implements WebhookUpdaterDelegate
The implementation ofWebhookUpdaterDelegate
.
-
-
Field Summary
Fields Modifier and Type Field Description protected ServerTextChannel
channel
The channel to update.protected String
name
The name to update.protected boolean
updateAvatar
Whether the avatar should be updated or not.protected Webhook
webhook
The webhook to update.
-
Constructor Summary
Constructors Constructor Description WebhookUpdaterDelegateImpl(Webhook webhook)
Creates a new webhook updater delegate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
removeAvatar()
void
setAuditLogReason(String reason)
void
setAvatar(byte[] avatar)
void
setAvatar(byte[] avatar, String fileType)
void
setAvatar(BufferedImage avatar)
void
setAvatar(BufferedImage avatar, String fileType)
void
setAvatar(File avatar)
void
setAvatar(InputStream avatar)
void
setAvatar(InputStream avatar, String fileType)
void
setAvatar(URL avatar)
void
setAvatar(Icon avatar)
void
setChannel(ServerTextChannel channel)
void
setName(String name)
CompletableFuture<Webhook>
update()
-
-
-
Field Detail
-
webhook
protected final Webhook webhook
The webhook to update.
-
name
protected String name
The name to update.
-
channel
protected ServerTextChannel channel
The channel to update.
-
updateAvatar
protected boolean updateAvatar
Whether the avatar should be updated or not.
-
-
Constructor Detail
-
WebhookUpdaterDelegateImpl
public WebhookUpdaterDelegateImpl(Webhook webhook)
Creates a new webhook updater delegate.- Parameters:
webhook
- The webhook to update.
-
-
Method Detail
-
setAuditLogReason
public void setAuditLogReason(String reason)
- Specified by:
setAuditLogReason
in interfaceWebhookUpdaterDelegate
-
setName
public void setName(String name)
- Specified by:
setName
in interfaceWebhookUpdaterDelegate
-
setChannel
public void setChannel(ServerTextChannel channel)
- Specified by:
setChannel
in interfaceWebhookUpdaterDelegate
-
setAvatar
public void setAvatar(BufferedImage avatar)
- Specified by:
setAvatar
in interfaceWebhookUpdaterDelegate
-
setAvatar
public void setAvatar(BufferedImage avatar, String fileType)
- Specified by:
setAvatar
in interfaceWebhookUpdaterDelegate
-
setAvatar
public void setAvatar(File avatar)
- Specified by:
setAvatar
in interfaceWebhookUpdaterDelegate
-
setAvatar
public void setAvatar(Icon avatar)
- Specified by:
setAvatar
in interfaceWebhookUpdaterDelegate
-
setAvatar
public void setAvatar(URL avatar)
- Specified by:
setAvatar
in interfaceWebhookUpdaterDelegate
-
setAvatar
public void setAvatar(byte[] avatar)
- Specified by:
setAvatar
in interfaceWebhookUpdaterDelegate
-
setAvatar
public void setAvatar(byte[] avatar, String fileType)
- Specified by:
setAvatar
in interfaceWebhookUpdaterDelegate
-
setAvatar
public void setAvatar(InputStream avatar)
- Specified by:
setAvatar
in interfaceWebhookUpdaterDelegate
-
setAvatar
public void setAvatar(InputStream avatar, String fileType)
- Specified by:
setAvatar
in interfaceWebhookUpdaterDelegate
-
removeAvatar
public void removeAvatar()
- Specified by:
removeAvatar
in interfaceWebhookUpdaterDelegate
-
update
public CompletableFuture<Webhook> update()
- Specified by:
update
in interfaceWebhookUpdaterDelegate
-
-