Package com.dianxin.tori.api.interaction
Interface IEntitySelectMenuHandler
public 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 TypeMethodDescriptionvoidexecute(net.dv8tion.jda.api.events.interaction.component.EntitySelectInteractionEvent event) Executes the specific logic when an entity is selected from the menu.@NotNull net.dv8tion.jda.api.components.selections.EntitySelectMenuGets the Discord Entity Select Menu component associated with this handler.
-
Method Details
-
getEntitySelectMenu
@NotNull @NotNull net.dv8tion.jda.api.components.selections.EntitySelectMenu getEntitySelectMenu()Gets the Discord Entity Select Menu component associated with this handler.- Returns:
- The configured
EntitySelectMenuinstance.
-
execute
void execute(net.dv8tion.jda.api.events.interaction.component.EntitySelectInteractionEvent event) Executes the specific logic when an entity is selected from the menu.- Parameters:
event- TheEntitySelectInteractionEventtriggered by the user.
-