Interface MessageComponentInteractionBase

    • Method Detail

      • getMessage

        Message getMessage()
        Gets the message that this interaction is related to. This may not be available if the sent message is EPHEMERAL.
        Returns:
        The message.
      • getCustomId

        java.lang.String getCustomId()
        Get the identifier of the clicked component.
        Returns:
        The component identifier.
      • getComponentType

        ComponentType getComponentType()
        Get the type of the component.
        Returns:
        The component type.
      • acknowledge

        java.util.concurrent.CompletableFuture<java.lang.Void> acknowledge()
        Acknowledges the incoming component interaction, for example a click on a button. The user will not see a loading state. You can still send follow-up messages within a 15-minute timeframe.
        Returns:
        A CompletableFuture that completes if the acknowledgement has been submitted successfully.
      • createOriginalMessageUpdater

        ComponentInteractionOriginalMessageUpdater createOriginalMessageUpdater()
        Creates a message updater that can be used to update the message the component of this interaction is attached to.
        Returns:
        The new message updater