Interface MessageComponentCreateEvent
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description InteractiongetInteraction()Gets the created interaction.default MessageComponentInteractiongetMessageComponentInteraction()Gets the created interaction as MessageComponentInteraction, if the interaction is of this type.default java.util.Optional<MessageComponentInteraction>getMessageComponentInteractionWithCustomId(java.lang.String customId)Gets the created interaction as MessageComponentInteraction, if the interaction is of this type, and the custom id equals the given custom id.
-
-
-
Method Detail
-
getInteraction
Interaction getInteraction()
Gets the created interaction.- Returns:
- The interaction.
-
getMessageComponentInteraction
default MessageComponentInteraction getMessageComponentInteraction()
Gets the created interaction as MessageComponentInteraction, if the interaction is of this type.- Returns:
- The interaction.
-
getMessageComponentInteractionWithCustomId
default java.util.Optional<MessageComponentInteraction> getMessageComponentInteractionWithCustomId(java.lang.String customId)
Gets the created interaction as MessageComponentInteraction, if the interaction is of this type, and the custom id equals the given custom id.- Parameters:
customId- The custom id to match.- Returns:
- The interaction.
-
-