Interface ISlashCommand

All Known Implementing Classes:
BaseCommand, ModernBaseCommand

public interface ISlashCommand
The foundational interface for all slash commands within the framework.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handle(net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent event, CommandReplyConfig replyConfig)
    Handles the incoming slash command interaction.
  • Method Details

    • handle

      void handle(net.dv8tion.jda.api.events.interaction.command.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.