Interface ComponentManager.HandlerEntry<H extends @NonNull ComponentManager.Handler<H,?>>

Type Parameters:
H - The handler type.
All Known Implementing Classes:
ButtonManager.HandlerEntry, ModalManager.HandlerEntry
Enclosing class:
ComponentManager<E extends @NonNull ComponentInteractionEvent,C extends @NonNull ComponentManager.ComponentContext<E>,HF extends @NonNull ComponentManager.HandlerFunction<C>,H extends @NonNull ComponentManager.Handler<H,HF>,HE extends @NonNull ComponentManager.HandlerEntry<H>>

protected static interface ComponentManager.HandlerEntry<H extends @NonNull ComponentManager.Handler<H,?>>
Specification for a handler to be registered.
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 to use.
    id()
    The component ID.
  • Method Details

    • id

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

      H handler()
      The handler to use.
      Returns:
      The handler to use.