You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- namespace Discord.Interactions
- {
- /// <summary>
- /// Represents the <see cref="InputComponentInfo"/> class for <see cref="ComponentType.TextInput"/> type.
- /// </summary>
- public class TextInputComponentInfo : InputComponentInfo
- {
- /// <summary>
- /// Gets the style of the text input.
- /// </summary>
- public TextInputStyle Style { get; }
-
- /// <summary>
- /// Gets the placeholder of the text input.
- /// </summary>
- public string Placeholder { get; }
-
- /// <summary>
- /// Gets the minimum length of the text input.
- /// </summary>
- public int MinLength { get; }
-
- /// <summary>
- /// Gets the maximum length of the text input.
- /// </summary>
- public int MaxLength { get; }
-
- /// <summary>
- /// Gets the initial value to be displayed by this input.
- /// </summary>
- public string InitialValue { get; }
-
- internal TextInputComponentInfo(Builders.TextInputComponentBuilder builder, ModalInfo modal) : base(builder, modal)
- {
- Style = builder.Style;
- Placeholder = builder.Placeholder;
- MinLength = builder.MinLength;
- MaxLength = builder.MaxLength;
- InitialValue = builder.InitialValue;
- }
- }
- }
|