Class SelectMenuComponent<S extends SelectMenuComponent<S,T,B,D>, T extends SelectMenu, B extends 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 ofSelectMenuComponentT- the type ofSelectMenutheSelectMenuDefinitionrepresentsB- the type ofSelectMenu.BuilderD- the type ofSelectMenuDefinitionthisSelectMenuComponentrepresents
- All Implemented Interfaces:
ActionRowChildComponent, ActionRowChildComponentUnion, Component, IComponentUnion, SectionAccessoryComponent, SectionAccessoryComponentUnion
- Direct Known Subclasses:
EntitySelectMenuComponent, StringSelectComponent
public abstract sealed class SelectMenuComponent<S extends SelectMenuComponent<S,T,B,D>, T extends SelectMenu, B extends 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:
-
Nested Class Summary
Nested classes/interfaces inherited from interface Component
Component.Type -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSelectMenuComponent(String method, @Nullable Class<?> origin, Entry[] placeholder) -
Method Summary
Modifier and TypeMethodDescriptionmaxValues(int maxValue) minValues(int minValue) placeholder(@Nullable String placeholder) requiresRange(int min, int max) Methods inherited from class Component
asButton, asEntitySelectMenu, asStringSelectMenu, asThumbnail, build, button, button, callback, definitionClass, disabled, disabled, enabled, enabled, enabled, enabled, entitySelect, entitySelect, getUniqueId, independent, independent, independent, modify, name, of, of, of, origin, placeholder, self, stringSelect, stringSelect, withUniqueIdMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
getType, isMessageCompatible, isModalCompatibleMethods inherited from interface IComponentUnion
isUnknownComponent
-
Field Details
-
placeholder
-
minValues
-
maxValues
-
-
Constructor Details
-
SelectMenuComponent
-
-
Method Details
-
placeholder
-
minValues
- See Also:
-
maxValues
- See Also:
-
requiresRange
- See Also:
-