SelectMenu<T> class
final
- Implemented types
Constructors
-
SelectMenu(ComponentType _type, String _customId, {String? placeholder, int? minLength, int? maxLength, int? minValues, int? maxValues, bool? disabled, List<
SelectMenuOption< ? options, List<T> >Snowflake> ? defaultValues, List<ChannelType> ? channelTypes}) -
SelectMenu.mentionable(String customId, {String? placeholder, int? minValues, int? maxValues, bool? disabled, List<
Snowflake> defaultValues = const []}) -
factory
-
SelectMenu.role(String customId, {String? placeholder, int? minValues, int? maxValues, bool? disabled, List<
Snowflake> defaultValues = const []}) -
factory
-
SelectMenu.user(String customId, {String? placeholder, int? minValues, int? maxValues, bool? disabled, List<
Snowflake> defaultValues = const []}) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
channel(
String customId, {String? placeholder, int? minValues, int? maxValues, bool? disabled, List< Snowflake> defaultValues = const [], List<ChannelType> channelTypes = const []}) → SelectMenu -
text(
String customId, List< SelectMenuOption< options, {String? placeholder, int? minValues, int? maxValues, bool? disabled}) → SelectMenuString> >