Interface SlashCommand

All Superinterfaces:
Command
All Known Subinterfaces:
InteractionCommand, TextCommand
All Known Implementing Classes:
InteractionCommandImpl, SlashCommandImpl, TextCommandImpl

public non-sealed interface SlashCommand extends Command
A slash command.
Since:
1.0
Version:
1.0
  • Method Details

    • invocationHandler

      SlashInvocationHandler 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 SlashResultHandler> 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.