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 record
A 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:Handlers
The handler to use for executing the invocation.- Specified by:
invocation
in interfaceHandlers
- Specified by:
invocation
in interfaceInteractionHandlers
- Specified by:
invocation
in interfaceMessageHandlers
- Specified by:
invocation
in interfaceSlashHandlers
- Returns:
- The handler.
-
result
List<? extends ResultHandler<CommandContext>> result()Description copied from interface:Handlers
The handlers to use to handle the result (in the order given).- Specified by:
result
in interfaceHandlers
- Specified by:
result
in interfaceInteractionHandlers
- Specified by:
result
in interfaceMessageHandlers
- Specified by:
result
in interfaceSlashHandlers
- Returns:
- The handlers.
-