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 Type
    Method
    Description
    void
    handle(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 - The MessageContextInteractionEvent triggered by Discord.
      replyConfig - The configuration used for custom error or rejection messages.