Interface ExecutableCommand<E>

Type Parameters:
E - The corresponding event.
All Known Implementing Classes:
ApplicationCommand, BaseApplicationCommand, ContextCommand, ContextCommand.Message, ContextCommand.User, SlashCommand, SlashCommand.Subcommand

public interface ExecutableCommand<E>
Represents an executable command.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    execute(E event)
    The method that gets called once the command gets executed.
  • Method Details

    • execute

      void execute(@Nonnull E event)
      The method that gets called once the command gets executed.
      Parameters:
      event - the command that is getting passed.