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