Interface MessageComponentInteraction

    • Method Detail

      • asButtonInteraction

        default Optional<ButtonInteraction> asButtonInteraction​()
        Get this interaction as button interaction if the type matches.
        Returns:
        the interaction as button interaction if the type matches; an empty optional otherwise
      • asSelectMenuInteraction

        default Optional<SelectMenuInteraction> asSelectMenuInteraction​()
        Get this interaction as select menu interaction if the type matches.
        Returns:
        the interaction as select menu interaction if the type matches; an empty optional otherwise