Interface ISlashCommand

All Known Implementing Classes:
BaseCommand, ModernBaseCommand

@ReleasedSince("26.4.231") public interface ISlashCommand
The foundational interface for all slash commands within the framework.
  • Method Details

    • handle

      void handle(SlashCommandInteractionEvent event, CommandReplyConfig replyConfig)
      Handles the incoming slash command interaction. This method is responsible for running all pre-execution checks before invoking the core logic.
      Parameters:
      event - The SlashCommandInteractionEvent triggered by Discord.
      replyConfig - The configuration used for custom error/rejection messages.