Package com.dianxin.tori.api.interaction
Interface IStringSelectMenuHandler
public 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 TypeMethodDescriptionvoidexecute(net.dv8tion.jda.api.events.interaction.component.StringSelectInteractionEvent event) Executes the specific logic when a string option is selected from the menu.@NotNull net.dv8tion.jda.api.components.selections.StringSelectMenuGets the Discord String Select Menu component associated with this handler.
-
Method Details
-
getStringSelectMenu
@NotNull @NotNull net.dv8tion.jda.api.components.selections.StringSelectMenu getStringSelectMenu()Gets the Discord String Select Menu component associated with this handler.- Returns:
- The configured
StringSelectMenuinstance.
-
execute
void execute(net.dv8tion.jda.api.events.interaction.component.StringSelectInteractionEvent event) Executes the specific logic when a string option is selected from the menu.- Parameters:
event- TheStringSelectInteractionEventtriggered by the user.
-