Interface InteractionCommand
- All Superinterfaces:
Command
,SlashCommand
- All Known Implementing Classes:
InteractionCommandImpl
An interaction-based command.
- Since:
- 1.0
- Version:
- 1.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.sympho.modular_commands.api.command.Command
Command.Scope
-
Method Summary
Modifier and TypeMethodDescriptionThe handler to use for processing an invocation of the command.default List<? extends InteractionResultHandler>
The handlers to use for processing the result, in order.Methods inherited from interface dev.sympho.modular_commands.api.command.Command
botOwnerOnly, callable, description, displayName, inheritSettings, invocation, invokeParent, name, nsfw, parameters, parent, privateReply, requiredDiscordPermissions, requireParentPermissions, scope, serverOwnerOnly
-
Method Details
-
invocationHandler
InteractionInvocationHandler invocationHandler()Description copied from interface:Command
The handler to use for processing an invocation of the command.- Specified by:
invocationHandler
in interfaceCommand
- Specified by:
invocationHandler
in interfaceSlashCommand
- Returns:
- The handler.
-
resultHandlers
Description copied from interface:Command
The handlers to use for processing the result, in order.They are given priority over any handlers defined at the registry or global level.
- Specified by:
resultHandlers
in interfaceCommand
- Specified by:
resultHandlers
in interfaceSlashCommand
- Returns:
- The result handlers for this command.
-