Class ComponentInteractionEvent

    • Method Detail

      • getCustomId

        public String getCustomId()
        Gets the developer-defined custom id associated with the component.
        Returns:
        The component's custom id.
        See Also:
        Button.getCustomId()
      • getMessage

        public Message getMessage()
        Gets the message the component is on.
        Returns:
        The message the component is on.
      • acknowledgeEphemeral

        public Mono<Void> acknowledgeEphemeral()
        Description copied from class: InteractionCreateEvent
        Acknowledges the interaction indicating a response will be edited later. Only the invoking user sees a loading state.
        Overrides:
        acknowledgeEphemeral in class InteractionCreateEvent
        Returns:
        A Mono where, upon successful completion, emits nothing, acknowledging the interaction and indicating a response will be edited later. If an error is received, it is emitted through the Mono.