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 Type
    Method
    Description
    void
    execute(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.EntitySelectMenu
    Gets 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 EntitySelectMenu instance.
    • 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 - The EntitySelectInteractionEvent triggered by the user.