Interface MessageComponentCreateEvent

  • All Superinterfaces:
    Event

    public interface MessageComponentCreateEvent
    extends Event
    A message component interaction create event.
    • 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.