Interface IMessageContextMenu
- All Known Implementing Classes:
BaseMessageContextMenu,ModernBaseMessageContextMenu
public interface IMessageContextMenu
The core interface for Message Context Menu commands.
Classes implementing this interface define the execution logic for commands
triggered when a user right-clicks on a specific message in Discord.
-
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(net.dv8tion.jda.api.events.interaction.command.MessageContextInteractionEvent event, CommandReplyConfig replyConfig) Handles the incoming message context menu interaction.
-
Method Details
-
handle
void handle(net.dv8tion.jda.api.events.interaction.command.MessageContextInteractionEvent event, CommandReplyConfig replyConfig) Handles the incoming message context menu interaction.- Parameters:
event- TheMessageContextInteractionEventtriggered by Discord.replyConfig- The configuration used for custom error or rejection messages.
-