ComponentType class Null safety

Type of interaction component

Inheritance

Constructors

ComponentType.from(int value)
Create ComponentType from value

Properties

hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
value int
Returns value of enum
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator.
inherited

Constants

button → const ComponentType
Button object.
ComponentType._create(2)
channelMultiSelect → const ComponentType
Select menu for channels.
ComponentType._create(8)
mentionableMultiSelect → const ComponentType
Select menu for mentionables (users and roles).
ComponentType._create(7)
multiSelect → const ComponentType
Select menu for picking from defined text options.
ComponentType._create(3)
roleMultiSelect → const ComponentType
Select menu for roles.
ComponentType._create(6)
row → const ComponentType
Row where other components can be placed
ComponentType._create(1)
select → const ComponentType
Select menu for picking from defined text options.
@Deprecated('Use "multiSelect" instead')
multiSelect
text → const ComponentType
Text input object.
ComponentType._create(4)
userMultiSelect → const ComponentType
Select menu for users.
ComponentType._create(5)