Class SelectMenuComponent<S extends SelectMenuComponent<S,T,B,D>, T extends net.dv8tion.jda.api.components.selections.SelectMenu, B extends net.dv8tion.jda.api.components.selections.SelectMenu.Builder<T,B>, D extends SelectMenuDefinition<T>>

java.lang.Object
io.github.kaktushose.jdac.dispatching.reply.Component<S,T,B,D>
io.github.kaktushose.jdac.dispatching.reply.dynamic.menu.SelectMenuComponent<S,T,B,D>
Type Parameters:
S - the concrete subtype of SelectMenuComponent
T - the type of SelectMenu the SelectMenuDefinition represents
B - the type of SelectMenu.Builder
D - the type of SelectMenuDefinition this SelectMenuComponent represents
All Implemented Interfaces:
net.dv8tion.jda.api.components.actionrow.ActionRowChildComponent, net.dv8tion.jda.api.components.actionrow.ActionRowChildComponentUnion, net.dv8tion.jda.api.components.Component, net.dv8tion.jda.api.components.IComponentUnion
Direct Known Subclasses:
EntitySelectMenuComponent, StringSelectComponent

public abstract sealed class SelectMenuComponent<S extends SelectMenuComponent<S,T,B,D>, T extends net.dv8tion.jda.api.components.selections.SelectMenu, B extends net.dv8tion.jda.api.components.selections.SelectMenu.Builder<T,B>, D extends SelectMenuDefinition<T>> extends Component<S,T,B,D> permits StringSelectComponent, EntitySelectMenuComponent

An implementation of Component specific to SelectMenu.

Dynamic registration of menu options is supported by EntitySelectMenuComponent and StringSelectComponent.

See Also:
  • Field Details

    • placeholder

      protected @Nullable String placeholder
    • minValues

      protected @Nullable Integer minValues
    • maxValues

      protected @Nullable Integer maxValues
  • Constructor Details

    • SelectMenuComponent

      public SelectMenuComponent(String method, @Nullable Class<?> origin, Entry[] placeholder)
  • Method Details

    • placeholder

      public S placeholder(@Nullable String placeholder)
      See Also:
      • SelectMenu.Builder.setPlaceholder(String)
    • minValues

      public S minValues(int minValue)
      See Also:
      • SelectMenu.Builder.setMinValues(int)
    • maxValues

      public S maxValues(int maxValue)
      See Also:
      • SelectMenu.Builder.setMaxValues(int)
    • requiresRange

      public S requiresRange(int min, int max)
      See Also:
      • SelectMenu.Builder.setRequiredRange(int, int)