Class TextInputComponent
Respresents a IMessageComponent text input.
Implements
Namespace: Discord
Assembly: Discord.Net.Core.dll
Syntax
public class TextInputComponent : object, IMessageComponent
Properties
| Improve this Doc View SourceCustomId
Gets the custom id of the component if possible; otherwise null.
Declaration
public string CustomId { get; }
Property Value
Type | Description |
---|---|
String |
Label
Gets the label of the component; this is the text shown above it.
Declaration
public string Label { get; }
Property Value
Type | Description |
---|---|
String |
MaxLength
Gets the maximum length of the inputted text.
Declaration
public int? MaxLength { get; }
Property Value
Type | Description |
---|---|
Nullable<Int32> |
MinLength
Gets the minimum length of the inputted text.
Declaration
public int? MinLength { get; }
Property Value
Type | Description |
---|---|
Nullable<Int32> |
Placeholder
Gets the placeholder of the component.
Declaration
public string Placeholder { get; }
Property Value
Type | Description |
---|---|
String |
Required
Gets whether users are required to input text.
Declaration
public bool? Required { get; }
Property Value
Type | Description |
---|---|
Nullable<Boolean> |
Style
Gets the style of the component.
Declaration
public TextInputStyle Style { get; }
Property Value
Type | Description |
---|---|
TextInputStyle |
Type
Gets the ComponentType of this Message Component.
Declaration
public ComponentType Type { get; }
Property Value
Type | Description |
---|---|
ComponentType |
Value
Gets the default value of the component.
Declaration
public string Value { get; }
Property Value
Type | Description |
---|---|
String |