Class StringSelectMenuImpl
java.lang.Object
net.dv8tion.jda.internal.components.AbstractComponentImpl
net.dv8tion.jda.internal.components.selections.SelectMenuImpl
net.dv8tion.jda.internal.components.selections.StringSelectMenuImpl
- All Implemented Interfaces:
ActionComponent
,ActionRowChildComponent
,ActionRowChildComponentUnion
,IDisableable
,Component
,IComponentUnion
,SelectMenu
,StringSelectMenu
,SerializableData
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.dv8tion.jda.api.components.Component
Component.Type
Nested classes/interfaces inherited from interface net.dv8tion.jda.api.components.selections.SelectMenu
SelectMenu.Builder<T extends SelectMenu,
B extends SelectMenu.Builder<T, B>> Nested classes/interfaces inherited from interface net.dv8tion.jda.api.components.selections.StringSelectMenu
StringSelectMenu.Builder
-
Field Summary
Fields inherited from interface net.dv8tion.jda.api.components.selections.SelectMenu
ID_MAX_LENGTH, OPTIONS_MAX_AMOUNT, PLACEHOLDER_MAX_LENGTH
-
Constructor Summary
ConstructorsConstructorDescriptionStringSelectMenuImpl
(String id, int uniqueId, String placeholder, int minValues, int maxValues, boolean disabled, List<SelectOption> options) -
Method Summary
Modifier and TypeMethodDescriptionboolean
An unmodifiable list of up to 25 available options to choose from.getType()
The type of component.int
hashCode()
toData()
SerializedDataObject
for this object.withUniqueId
(int uniqueId) Creates a new component with the provided numeric ID.Methods inherited from class net.dv8tion.jda.internal.components.selections.SelectMenuImpl
getCustomId, getMaxValues, getMinValues, getPlaceholder, getUniqueId, isDisabled, toString
Methods inherited from class net.dv8tion.jda.internal.components.AbstractComponentImpl
asActionRow, asButton, asContainer, asEntitySelectMenu, asFileDisplay, asMediaGallery, asSection, asSeparator, asStringSelectMenu, asTextDisplay, asTextInput, asThumbnail
Methods inherited from interface net.dv8tion.jda.api.components.ActionComponent
getId, isDisabled
Methods inherited from interface net.dv8tion.jda.api.components.actionrow.ActionRowChildComponentUnion
asButton, asEntitySelectMenu, asStringSelectMenu
Methods inherited from interface net.dv8tion.jda.api.components.Component
getUniqueId, isMessageCompatible, isModalCompatible
Methods inherited from interface net.dv8tion.jda.api.components.IComponentUnion
isUnknownComponent
Methods inherited from interface net.dv8tion.jda.api.components.attribute.IDisableable
isEnabled
Methods inherited from interface net.dv8tion.jda.api.components.selections.SelectMenu
getCustomId, getMaxValues, getMinValues, getPlaceholder
Methods inherited from interface net.dv8tion.jda.api.components.selections.StringSelectMenu
asDisabled, asEnabled, createCopy, withDisabled
-
Constructor Details
-
StringSelectMenuImpl
-
StringSelectMenuImpl
public StringSelectMenuImpl(String id, int uniqueId, String placeholder, int minValues, int maxValues, boolean disabled, List<SelectOption> options)
-
-
Method Details
-
getType
Description copied from interface:Component
The type of component.- Specified by:
getType
in interfaceComponent
- Returns:
Component.Type
-
withUniqueId
Description copied from interface:Component
Creates a new component with the provided numeric ID.
If no ID is set, Discord will generate IDs incrementally starting from 1 and will not use existing IDs from the same message/modal.- Specified by:
withUniqueId
in interfaceActionComponent
- Specified by:
withUniqueId
in interfaceActionRowChildComponent
- Specified by:
withUniqueId
in interfaceActionRowChildComponentUnion
- Specified by:
withUniqueId
in interfaceComponent
- Specified by:
withUniqueId
in interfaceIComponentUnion
- Specified by:
withUniqueId
in interfaceIDisableable
- Specified by:
withUniqueId
in interfaceSelectMenu
- Specified by:
withUniqueId
in interfaceStringSelectMenu
- Specified by:
withUniqueId
in classSelectMenuImpl
- Parameters:
uniqueId
- The new ID; must be higher or equal to 1- Returns:
- The new component
-
getOptions
Description copied from interface:StringSelectMenu
An unmodifiable list of up to 25 available options to choose from.- Specified by:
getOptions
in interfaceStringSelectMenu
- Returns:
- The
SelectOptions
this menu provides - See Also:
-
toData
Description copied from interface:SerializableData
SerializedDataObject
for this object.- Specified by:
toData
in interfaceSerializableData
- Overrides:
toData
in classSelectMenuImpl
- Returns:
DataObject
-
hashCode
public int hashCode() -
equals
-