Interface ComponentManager.Handler<HF extends @NonNull ComponentManager.HandlerFunction<?>>

Type Parameters:
HF - The handler function type.
All Known Subinterfaces:
ButtonManager.Handler, ModalManager.Handler
Enclosing class:
ComponentManager<E extends @NonNull ComponentInteractionEvent,C extends @NonNull ComponentEventContext,HF extends @NonNull ComponentManager.HandlerFunction<C>,H extends @NonNull ComponentManager.Handler<HF>>

protected static interface ComponentManager.Handler<HF extends @NonNull ComponentManager.HandlerFunction<?>>
Specification for the handling of an interaction.
Since:
1.0
API Note:
Implementations may add more configuration values beyond the minimum required by this interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    The handler function.
    id()
    The component ID.
  • Method Details

    • id

      String id()
      The component ID.
      Returns:
      The component ID.
    • handler

      HF handler()
      The handler function.
      Returns:
      The handler function.