MessageTextInput¶
Inherits: MessageInteractiveComponent < MessageComponent < Reference < Object
Description¶
Interactive component that renders on modals. They can be used to collect short-form or long-form text.
Properties¶
type | name |
---|---|
int | style |
String | label |
int | min_length |
int | max_length |
bool | required |
String | value |
String | placeholder |
Constants¶
-
Dictionary Styles
-
SHORT = 1
-
PARAGRAPH = 2
Text input styles.
-
Property Descriptions¶
-
int style
Style of text input.
-
String label
The label for this component.
-
int min_length
The minimum input length for a text input.
-
int max_length
The maximum input length for a text input.
-
bool required
Whether this component is required to be filled,
-
String value
A pre-filled value for this component.
-
String placeholder
Custom placeholder text if the input is empty.