Interface MessageCommand
- All Superinterfaces:
Command
- All Known Subinterfaces:
TextCommand
- All Known Implementing Classes:
MessageCommandImpl
,TextCommandImpl
A message-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 TypeMethodDescriptionaliases()
The aliases that may also invoke the command.default Set<Invocation>
The alias invocations that may also invoke the command.The handler to use for processing an invocation of the command.default List<? extends MessageResultHandler>
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
-
aliases
The aliases that may also invoke the command.These aliases are only relevant to handling invocations. They may not be used to specify the command as a parent.
Aliases must satisfy the same restrictions as the
name
.- Returns:
- The command aliases.
-
aliasInvocations
The alias invocations that may also invoke the command. -
invocationHandler
MessageInvocationHandler invocationHandler()Description copied from interface:Command
The handler to use for processing an invocation of the command.- Specified by:
invocationHandler
in interfaceCommand
- 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
- Returns:
- The result handlers for this command.
-