Interface ComponentManager.HandlerFunction<C extends @NonNull ComponentManager.ComponentContext<?>>

Type Parameters:
C - The context type.
All Superinterfaces:
BiFunction<C,String,Mono<?>>
All Known Subinterfaces:
ButtonManager.HandlerFunction, ModalManager.HandlerFunction
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>>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface protected static interface ComponentManager.HandlerFunction<C extends @NonNull ComponentManager.ComponentContext<?>> extends BiFunction<C,String,Mono<?>>
A function used to handle an interaction event.
Since:
1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Mono<?>
    apply(C context, String args)
    Handles an interaction event.

    Methods inherited from interface java.util.function.BiFunction

    andThen
  • Method Details