Interface InteractionMessageBuilderDelegate
-
- All Superinterfaces:
MessageBuilderDelegate
public interface InteractionMessageBuilderDelegate extends MessageBuilderDelegate
-
-
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.CompletableFuture<Void>deleteFollowupMessage(InteractionBase interaction, String messageId)Delete a follow up message.CompletableFuture<Void>deleteInitialResponse(InteractionBase interaction)Delete the original response message.CompletableFuture<Message>editFollowupMessage(InteractionBase interaction, String messageId)Edits the message.CompletableFuture<Message>editOriginalResponse(InteractionBase interaction)Edits the message.CompletableFuture<Message>sendFollowupMessage(InteractionBase interaction)Sends the message as a followup message.CompletableFuture<Void>sendInitialResponse(InteractionBase interaction)Sends the message.voidsetFlags(EnumSet<MessageFlag> messageFlags)Sets the message flags of the message.CompletableFuture<Void>updateOriginalMessage(InteractionBase interaction)Edit the message the component was attached to.-
Methods inherited from interface org.javacord.api.entity.message.internal.MessageBuilderDelegate
addActionRow, addAttachment, addAttachment, addAttachment, addAttachment, addAttachment, addAttachment, addAttachmentAsSpoiler, addAttachmentAsSpoiler, addAttachmentAsSpoiler, addComponents, addEmbed, addEmbeds, addFile, addFile, addFile, addFile, addFile, addFile, addFileAsSpoiler, addFileAsSpoiler, addFileAsSpoiler, append, append, append, appendCode, appendNewLine, copy, getStringBuilder, removeAllComponents, removeAllEmbeds, removeComponent, removeComponent, removeEmbed, removeEmbeds, replyTo, send, send, send, send, sendWithWebhook, setAllowedMentions, setContent, setNonce, setTts
-
-
-
-
Method Detail
-
setFlags
void setFlags(EnumSet<MessageFlag> messageFlags)
Sets the message flags of the message.- Parameters:
messageFlags- The message flag of the message.
-
sendInitialResponse
CompletableFuture<Void> sendInitialResponse(InteractionBase interaction)
Sends the message.- Parameters:
interaction- The interaction.- Returns:
- The completable future when the message has been sent.
-
deleteInitialResponse
CompletableFuture<Void> deleteInitialResponse(InteractionBase interaction)
Delete the original response message.- Parameters:
interaction- The interaction.- Returns:
- The completable future when the message has been deleted.
-
editOriginalResponse
CompletableFuture<Message> editOriginalResponse(InteractionBase interaction)
Edits the message.- Parameters:
interaction- The interaction.- Returns:
- The sent message.
-
sendFollowupMessage
CompletableFuture<Message> sendFollowupMessage(InteractionBase interaction)
Sends the message as a followup message.- Parameters:
interaction- The interaction.- Returns:
- The sent message.
-
updateOriginalMessage
CompletableFuture<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
CompletableFuture<Void> deleteFollowupMessage(InteractionBase interaction, 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
CompletableFuture<Message> editFollowupMessage(InteractionBase interaction, 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.
-
-