Interface ITextCommand
- All Known Implementing Classes:
BaseTextCommand,ModernBaseTextCommand
@Obsolete(since="Discord Message Content Intent restrictions")
public interface ITextCommand
The core interface for legacy text-based commands (e.g., "!ping").
Note: Discord heavily restricts the Message Content Intent. It is highly recommended
to use Slash Commands instead.
-
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(net.dv8tion.jda.api.events.message.MessageReceivedEvent event, String[] args, CommandReplyConfig replyConfig) Handles the incoming text command interaction.
-
Method Details
-
handle
void handle(net.dv8tion.jda.api.events.message.MessageReceivedEvent event, String[] args, CommandReplyConfig replyConfig) Handles the incoming text command interaction.- Parameters:
event- TheMessageReceivedEventtriggered by Discord.args- An array of arguments parsed from the message.replyConfig- The configuration used for custom error or rejection messages.
-