Interface TextCommand
- All Superinterfaces:
Command
,MessageCommand
,SlashCommand
- All Known Implementing Classes:
TextCommandImpl
A command that is invoked through any form of text (as opposed to a GUI element
like a button).
- 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 AnyResultHandler>
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
Methods inherited from interface dev.sympho.modular_commands.api.command.MessageCommand
aliases, aliasInvocations
-
Method Details
-
invocationHandler
AnyCommandHandler 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 interfaceMessageCommand
- 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 interfaceMessageCommand
- Specified by:
resultHandlers
in interfaceSlashCommand
- Returns:
- The result handlers for this command.
-