Interface InteractionHandlers
- All Superinterfaces:
Handlers,SlashHandlers
- All Known Subinterfaces:
TextHandlers
- All Known Implementing Classes:
InteractionHandlers.Impl,TextHandlers.Impl
A set of handlers that support interaction-based 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<? super InteractionCommandContext>>result()The handlers to use to handle the result (in the order given).
-
Method Details
-
invocation
InvocationHandler<? super InteractionCommandContext> invocation()Description copied from interface:HandlersThe handler to use for executing the invocation.- Specified by:
invocationin interfaceHandlers- Specified by:
invocationin interfaceSlashHandlers- Returns:
- The handler.
-
result
List<? extends ResultHandler<? super InteractionCommandContext>> result()Description copied from interface:HandlersThe handlers to use to handle the result (in the order given).- Specified by:
resultin interfaceHandlers- Specified by:
resultin interfaceSlashHandlers- Returns:
- The handlers.
-