Package org.javacord.core.entity.message
Class WebhookMessageBuilderDelegateImpl
- java.lang.Object
-
- org.javacord.core.entity.message.MessageBuilderBaseDelegateImpl
-
- org.javacord.core.entity.message.WebhookMessageBuilderDelegateImpl
-
- All Implemented Interfaces:
MessageBuilderBaseDelegate
,WebhookMessageBuilderDelegate
public class WebhookMessageBuilderDelegateImpl extends MessageBuilderBaseDelegateImpl implements WebhookMessageBuilderDelegate
The implementation ofWebhookMessageBuilderDelegate
.
-
-
Field Summary
-
Fields inherited from class org.javacord.core.entity.message.MessageBuilderBaseDelegateImpl
allowedMentions, attachmentsChanged, attachmentsToRemove, components, componentsChanged, contentChanged, embeds, embedsChanged, newAttachments, nonce, removeAllAttachments, replyingTo, stickerIds, strBuilder, tts
-
-
Constructor Summary
Constructors Constructor Description WebhookMessageBuilderDelegateImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<Message>
send(DiscordApi api, java.lang.String webhookId, java.lang.String webhookToken)
java.util.concurrent.CompletableFuture<Message>
send(IncomingWebhook webhook)
java.util.concurrent.CompletableFuture<java.lang.Void>
sendSilently(DiscordApi api, java.lang.String webhookId, java.lang.String webhookToken)
java.util.concurrent.CompletableFuture<java.lang.Void>
sendSilently(IncomingWebhook webhook)
void
setDisplayAvatar(java.net.URL avatarUrl)
void
setDisplayAvatar(Icon avatar)
void
setDisplayName(java.lang.String displayName)
-
Methods inherited from class org.javacord.core.entity.message.MessageBuilderBaseDelegateImpl
addActionRow, addAttachment, addAttachment, addAttachment, addAttachment, addAttachment, addAttachment, addAttachmentAsSpoiler, addAttachmentAsSpoiler, addAttachmentAsSpoiler, addComponents, addEmbed, addEmbeds, addMultipartBodyToRequest, addSticker, addStickers, append, append, append, appendCode, appendNamedLink, appendNewLine, copy, edit, getStringBuilder, prepareCommonWebhookMessageBodyParts, prepareComponents, prepareComponents, removeAllComponents, removeAllEmbeds, removeComponent, removeComponent, removeEmbed, removeEmbeds, removeExistingAttachment, removeExistingAttachments, removeExistingAttachments, replyTo, send, send, send, send, sendWithWebhook, setAllowedMentions, setContent, setNonce, setTts, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.javacord.api.entity.message.internal.MessageBuilderBaseDelegate
addActionRow, addAttachment, addAttachment, addAttachment, addAttachment, addAttachment, addAttachment, addAttachmentAsSpoiler, addAttachmentAsSpoiler, addAttachmentAsSpoiler, addComponents, addEmbed, addEmbeds, addSticker, addStickers, append, append, append, appendCode, appendNamedLink, appendNewLine, copy, edit, getStringBuilder, removeAllComponents, removeAllEmbeds, removeComponent, removeComponent, removeEmbed, removeEmbeds, removeExistingAttachment, removeExistingAttachments, removeExistingAttachments, replyTo, send, send, send, sendWithWebhook, setAllowedMentions, setContent, setNonce, setTts
-
Methods inherited from interface org.javacord.api.entity.message.internal.WebhookMessageBuilderDelegate
setDisplayAuthor, setDisplayAuthor
-
-
-
-
Method Detail
-
setDisplayName
public void setDisplayName(java.lang.String displayName)
- Specified by:
setDisplayName
in interfaceWebhookMessageBuilderDelegate
-
setDisplayAvatar
public void setDisplayAvatar(java.net.URL avatarUrl)
- Specified by:
setDisplayAvatar
in interfaceWebhookMessageBuilderDelegate
-
setDisplayAvatar
public void setDisplayAvatar(Icon avatar)
- Specified by:
setDisplayAvatar
in interfaceWebhookMessageBuilderDelegate
-
send
public java.util.concurrent.CompletableFuture<Message> send(IncomingWebhook webhook)
- Specified by:
send
in interfaceMessageBuilderBaseDelegate
- Overrides:
send
in classMessageBuilderBaseDelegateImpl
-
send
public java.util.concurrent.CompletableFuture<Message> send(DiscordApi api, java.lang.String webhookId, java.lang.String webhookToken)
- Specified by:
send
in interfaceWebhookMessageBuilderDelegate
-
sendSilently
public java.util.concurrent.CompletableFuture<java.lang.Void> sendSilently(IncomingWebhook webhook)
- Specified by:
sendSilently
in interfaceWebhookMessageBuilderDelegate
-
sendSilently
public java.util.concurrent.CompletableFuture<java.lang.Void> sendSilently(DiscordApi api, java.lang.String webhookId, java.lang.String webhookToken)
- Specified by:
sendSilently
in interfaceWebhookMessageBuilderDelegate
-
-