Interface ButtonClickEvent

  • All Superinterfaces:
    Event


    public interface ButtonClickEvent
    extends Event
    A button click event.
    • Method Detail

      • getInteraction

        Interaction getInteraction​()
        Gets the created interaction.
        Returns:
        The interaction.
      • getButtonInteraction

        default ButtonInteraction getButtonInteraction​()
        Gets the created interaction as ButtonInteraction.
        Returns:
        The interaction.
      • getButtonInteractionWithCustomId

        default Optional<ButtonInteraction> getButtonInteractionWithCustomId​(String customId)
        Gets the created interaction as ButtonInteraction, if the custom id equals the given custom id.
        Parameters:
        customId - The custom id to match.
        Returns:
        The interaction.