Interface ITextCommand

All Known Implementing Classes:
BaseTextCommand, ModernBaseTextCommand

@ReleasedSince("26.4.234") @Deprecated @ScheduledForRemoval(inVersion="26.10.0") @Obsolete(since="Discord Message Content Intent restrictions") public interface ITextCommand
Deprecated.
Discord is shifting toward Slash Commands to improve user privacy, security, and discoverability. So we need to deprecate any text command classes to align with Discord's requirements. It is recommended to use Slash command registrars for better experience.
The core interface for legacy text-based commands (e.g., "!ping").
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handle(MessageReceivedEvent event, String[] args, CommandReplyConfig replyConfig)
    Deprecated.
    Handles the incoming text command interaction.
  • Method Details

    • handle

      void handle(MessageReceivedEvent event, String[] args, CommandReplyConfig replyConfig)
      Deprecated.
      Handles the incoming text command interaction.
      Parameters:
      event - The MessageReceivedEvent triggered by Discord.
      args - An array of arguments parsed from the message.
      replyConfig - The configuration used for custom error or rejection messages.