Package com.dianxin.tori.api.interaction
Interface IStringSelectMenuHandler
Represents a handler for a specific Discord String Select Menu interaction.
Implement this interface to define the behavior when a user selects a predefined string option.
-
Method Summary
Modifier and TypeMethodDescriptionvoidExecutes the specific logic when a string option is selected from the menu.@NotNull StringSelectMenuGets the Discord String Select Menu component associated with this handler.
-
Method Details
-
getStringSelectMenu
Gets the Discord String Select Menu component associated with this handler.- Returns:
- The configured
StringSelectMenuinstance.
-
execute
Executes the specific logic when a string option is selected from the menu.- Parameters:
event- TheStringSelectInteractionEventtriggered by the user.
-