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