Interface TextHandlers
- All Superinterfaces:
Handlers,InteractionHandlers,MessageHandlers,SlashHandlers
- All Known Implementing Classes:
TextHandlers.Impl
A set of handlers that support text-based (message and slash) invocations.
- Since:
- 1.0
- Version:
- 1.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordA record-based implementation. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe handler to use for executing the invocation.List<? extends ResultHandler<CommandContext>>result()The handlers to use to handle the result (in the order given).
-
Method Details
-
invocation
InvocationHandler<CommandContext> invocation()Description copied from interface:HandlersThe handler to use for executing the invocation.- Specified by:
invocationin interfaceHandlers- Specified by:
invocationin interfaceInteractionHandlers- Specified by:
invocationin interfaceMessageHandlers- Specified by:
invocationin interfaceSlashHandlers- Returns:
- The handler.
-
result
List<? extends ResultHandler<CommandContext>> result()Description copied from interface:HandlersThe handlers to use to handle the result (in the order given).- Specified by:
resultin interfaceHandlers- Specified by:
resultin interfaceInteractionHandlers- Specified by:
resultin interfaceMessageHandlers- Specified by:
resultin interfaceSlashHandlers- Returns:
- The handlers.
-