Interface MessageComponentInteraction

    • Method Detail

      • asButtonInteraction

        default java.util.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 java.util.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