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