Interface InteractionMessageBuilderDelegate
-
- All Superinterfaces:
MessageBuilderBaseDelegate
public interface InteractionMessageBuilderDelegate extends MessageBuilderBaseDelegate
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcopy(InteractionBase interaction)Fill the builder's values with the message from a given interaction, if the type of the interaction offers a message.java.util.concurrent.CompletableFuture<java.lang.Void>deleteFollowupMessage(InteractionBase interaction, java.lang.String messageId)Delete a follow-up message.java.util.concurrent.CompletableFuture<java.lang.Void>deleteInitialResponse(InteractionBase interaction)Delete the original response message.java.util.concurrent.CompletableFuture<Message>editFollowupMessage(InteractionBase interaction, java.lang.String messageId)Edits the message.java.util.concurrent.CompletableFuture<Message>editOriginalResponse(InteractionBase interaction)Edits the message.java.util.concurrent.CompletableFuture<Message>sendFollowupMessage(InteractionBase interaction)Sends the message as a followup message.java.util.concurrent.CompletableFuture<java.lang.Void>sendInitialResponse(InteractionBase interaction)Sends the message.voidsetFlags(java.util.EnumSet<MessageFlag> messageFlags)Sets the interaction message flags of the message.java.util.concurrent.CompletableFuture<java.lang.Void>updateOriginalMessage(InteractionBase interaction)Edit the message the component was attached to.-
Methods inherited from interface org.javacord.api.entity.message.internal.MessageBuilderBaseDelegate
addActionRow, addAttachment, addAttachment, addAttachment, addAttachment, addAttachment, addAttachment, addAttachmentAsSpoiler, addAttachmentAsSpoiler, addAttachmentAsSpoiler, addComponents, addEmbed, addEmbeds, addFile, addFile, addFile, addFile, addFile, addFile, addFileAsSpoiler, addFileAsSpoiler, addFileAsSpoiler, addSticker, addStickers, append, append, append, appendCode, appendNamedLink, appendNewLine, copy, edit, getStringBuilder, removeAllComponents, removeAllEmbeds, removeComponent, removeComponent, removeEmbed, removeEmbeds, replyTo, send, send, send, send, sendWithWebhook, setAllowedMentions, setContent, setNonce, setTts
-
-
-
-
Method Detail
-
setFlags
void setFlags(java.util.EnumSet<MessageFlag> messageFlags)
Sets the interaction message flags of the message.- Parameters:
messageFlags- The message flags of the message.
-
sendInitialResponse
java.util.concurrent.CompletableFuture<java.lang.Void> sendInitialResponse(InteractionBase interaction)
Sends the message.- Parameters:
interaction- The interaction.- Returns:
- The completable future when the message has been sent.
-
deleteInitialResponse
java.util.concurrent.CompletableFuture<java.lang.Void> deleteInitialResponse(InteractionBase interaction)
Delete the original response message.- Parameters:
interaction- The interaction.- Returns:
- The completable future when the message has been deleted.
-
editOriginalResponse
java.util.concurrent.CompletableFuture<Message> editOriginalResponse(InteractionBase interaction)
Edits the message.- Parameters:
interaction- The interaction.- Returns:
- The sent message.
-
sendFollowupMessage
java.util.concurrent.CompletableFuture<Message> sendFollowupMessage(InteractionBase interaction)
Sends the message as a followup message.- Parameters:
interaction- The interaction.- Returns:
- The sent message.
-
updateOriginalMessage
java.util.concurrent.CompletableFuture<java.lang.Void> updateOriginalMessage(InteractionBase interaction)
Edit the message the component was attached to.- Parameters:
interaction- The interaction.- Returns:
- The completable future to determine if the message was updated.
-
deleteFollowupMessage
java.util.concurrent.CompletableFuture<java.lang.Void> deleteFollowupMessage(InteractionBase interaction, java.lang.String messageId)
Delete a follow-up message.- Parameters:
interaction- The interaction.messageId- The message id of the followup message which should be edited.- Returns:
- The sent message.
-
editFollowupMessage
java.util.concurrent.CompletableFuture<Message> editFollowupMessage(InteractionBase interaction, java.lang.String messageId)
Edits the message.- Parameters:
interaction- The interaction.messageId- The message id of the followup message which should be edited.- Returns:
- The sent message.
-
copy
void copy(InteractionBase interaction)
Fill the builder's values with the message from a given interaction, if the type of the interaction offers a message.- Parameters:
interaction- The Interaction to copy from.
-
-