Interface ButtonClickEvent
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ButtonInteractiongetButtonInteraction()Gets the created interaction as ButtonInteraction.default java.util.Optional<ButtonInteraction>getButtonInteractionWithCustomId(java.lang.String customId)Gets the created interaction as ButtonInteraction, if the custom id equals the given custom id.InteractiongetInteraction()Gets the created interaction.
-
-
-
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 java.util.Optional<ButtonInteraction> getButtonInteractionWithCustomId(java.lang.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.
-
-