Interface InteractionMessageBuilderDelegate

    • 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.
      • 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.