Class TextInputComponent
- Namespace
- Discord
- Assembly
- Discord.Net.Core.dll
Represents a IMessageComponent text input.
public class TextInputComponent : IMessageComponent
- Inheritance
-
TextInputComponent
- Implements
- Inherited Members
Properties
CustomId
Gets the custom id of the component if possible; otherwise null.
public string CustomId { get; }
Property Value
Label
Gets the label of the component; this is the text shown above it.
public string Label { get; }
Property Value
MaxLength
Gets the maximum length of the inputted text.
public int? MaxLength { get; }
Property Value
- int?
MinLength
Gets the minimum length of the inputted text.
public int? MinLength { get; }
Property Value
- int?
Placeholder
Gets the placeholder of the component.
public string Placeholder { get; }
Property Value
Required
Gets whether users are required to input text.
public bool? Required { get; }
Property Value
- bool?
Style
Gets the style of the component.
public TextInputStyle Style { get; }
Property Value
Type
Gets the ComponentType of this Message Component.
public ComponentType Type { get; }
Property Value
Value
Gets the default value of the component.
public string Value { get; }