Interface MessageCommand

All Superinterfaces:
Command
All Known Subinterfaces:
TextCommand
All Known Implementing Classes:
MessageCommandImpl, TextCommandImpl

public non-sealed interface MessageCommand extends Command
A message-based command.
Since:
1.0
Version:
1.0
  • Method Details

    • aliases

      @Pure Set<String> 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

      @Pure default Set<Invocation> aliasInvocations()
      The alias invocations that may also invoke the command.
      Returns:
      The command aliases as invocations.
      See Also:
      Implementation Requirements:
      The invocation is determined by appending each alias to the parent.
    • invocationHandler

      MessageInvocationHandler invocationHandler()
      Description copied from interface: Command
      The handler to use for processing an invocation of the command.
      Specified by:
      invocationHandler in interface Command
      Returns:
      The handler.
    • resultHandlers

      default List<? extends MessageResultHandler> 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 interface Command
      Returns:
      The result handlers for this command.