Package com.dianxin.tori.api.interaction
Interface IEntitySelectMenuHandler
Represents a handler for a specific Discord Entity Select Menu interaction.
Implement this interface to define the behavior when a user selects an entity (User, Role, Channel, etc.).
-
Method Summary
Modifier and TypeMethodDescriptionvoidExecutes the specific logic when an entity is selected from the menu.@NotNull EntitySelectMenuGets the Discord Entity Select Menu component associated with this handler.
-
Method Details
-
getEntitySelectMenu
Gets the Discord Entity Select Menu component associated with this handler.- Returns:
- The configured
EntitySelectMenuinstance.
-
execute
Executes the specific logic when an entity is selected from the menu.- Parameters:
event- TheEntitySelectInteractionEventtriggered by the user.
-