ChannelSelectMenuBuilder class
A builder for select menus component.
Constructors
- ChannelSelectMenuBuilder(String customId)
Properties
-
channels
→ List<
ChannelType> -
The list of ChannelType that can be selected.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type ↔ ComponentType?
-
getter/setter pairinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setChannelTypes(
List< ChannelType> types) → void - Sets the list of ChannelType that can be selected.
-
setDisabled(
bool value) → void -
Sets the disabled state of the menu.
inherited
-
setMaxValues(
int value) → void -
Sets the maximum number of items that can be chosen; default 1, max 25.
inherited
-
setMinValues(
int value) → void -
Sets the minimum number of items that must be chosen; default 1, min 0, max 25.
inherited
-
setPlaceholder(
String value) → void -
Sets the placeholder text shown on the menu.
inherited
-
toJson(
) → Map< String, dynamic> - Serialize this component to a JSON object.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited