Class SelectImpl
java.lang.Object
com.mewna.catnip.entity.impl.message.component.SelectImpl
- All Implemented Interfaces:
MessageComponent
,Select
,HasCustomId
- Since:
- 7/12/21.
- Author:
- amy
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from interface com.mewna.catnip.entity.message.component.MessageComponent
MessageComponent.MessageComponentType
Nested classes/interfaces inherited from interface com.mewna.catnip.entity.message.component.Select
Select.SelectOption
-
Constructor Summary
ConstructorDescriptionSelectImpl
(List<Select.SelectOption> options, String placeholder, int minValues, int maxValues, boolean disabled, String customId) -
Method Summary
Modifier and TypeMethodDescriptionstatic SelectImpl.SelectImplBuilder
builder()
customId()
boolean
disabled()
disabled
(boolean disabled) int
maxValues
(int maxValues) int
minValues
(int minValues) options()
options
(List<Select.SelectOption> options) placeholder
(String placeholder)
-
Constructor Details
-
SelectImpl
public SelectImpl() -
SelectImpl
public SelectImpl(List<Select.SelectOption> options, String placeholder, int minValues, int maxValues, boolean disabled, String customId)
-
-
Method Details
-
builder
-
options
-
placeholder
- Specified by:
placeholder
in interfaceSelect
-
minValues
public int minValues() -
maxValues
public int maxValues() -
disabled
public boolean disabled() -
customId
- Specified by:
customId
in interfaceHasCustomId
-
options
- Returns:
this
.
-
placeholder
- Returns:
this
.
-
minValues
- Returns:
this
.
-
maxValues
- Returns:
this
.
-
disabled
- Returns:
this
.
-
customId
- Returns:
this
.
-