Package dev.sympho.bot_utils.component
Interface ModalManager.Handler
- All Superinterfaces:
ComponentManager.Handler<ModalManager.HandlerFunction>
- Enclosing class:
- ModalManager
@Immutable
public static interface ModalManager.Handler
extends ComponentManager.Handler<ModalManager.HandlerFunction>
Specification for the handling of a modal submission.
- Since:
- 1.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classThe default builder. -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic ModalManager.Handler.Builderbuilder()Creates a new builder.static ModalManager.Handler.Builderbuilder(ModalManager.Handler base) Creates a new builder initialized with the properties of the given handler.static ModalManager.Handlerof(String id, ModalManager.HandlerFunction handler) Creates a handler that uses the given function..Methods inherited from interface dev.sympho.bot_utils.component.ComponentManager.Handler
handler, id
-
Method Details
-
of
Creates a handler that uses the given function..- Parameters:
id- The handler ID.handler- The function to handle events with.- Returns:
- The resulting handler.
-
builder
Creates a new builder.- Returns:
- The builder.
-
builder
Creates a new builder initialized with the properties of the given handler.- Parameters:
base- The base instance to copy.- Returns:
- The builder.
-