DiscordMessageComponentTextInput class

Text inputs are an interactive component that render on modals. They can be used to collect short-form or long-form text.

Inheritance

Constructors

DiscordMessageComponentTextInput({required String customId, required int style, required String label, int? minLength, int? maxLength, bool? required, String? value, String? placeholder})
DiscordMessageComponentTextInput.fromJson(Map<String, dynamic> json)
factory

Properties

customId String
a developer-defined identifier for the button, max 100 characters
final
hashCode int
The hash code for this object.
no setterinherited
label String
the label for this component
final
maxLength int?
the maximum input length for a text input, min 1, max 4000
final
minLength int?
the minimum input length for a text input, min 0, max 4000
final
placeholder String?
custom placeholder text if the input is empty, max 100 characters
final
required bool?
whether this component is required to be filled, default true
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style int
the Text Input Style
final
styleAsEnum DiscordMessageComponentTextInputStyle
no setter
type int
The type of component
finalinherited
typeAsEnum DiscordMessageComponentType
no setterinherited
value String?
a pre-filled value for this component, max 4000 characters
final

Methods

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

Operators

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

Constants

customIdEntry → const String
labelEntry → const String
maxLengthEntry → const String
minLengthEntry → const String
placeholderEntry → const String
requiredEntry → const String
styleEntry → const String
valueEntry → const String