Search Results for

    Show / Hide Table of Contents

    Class TextInputComponent

    Respresents a IMessageComponent text input.

    Inheritance
    Object
    TextInputComponent
    Implements
    IMessageComponent
    Namespace: Discord
    Assembly: Discord.Net.Core.dll
    Syntax
    public class TextInputComponent : object, IMessageComponent

    Properties

    | Improve this Doc View Source

    CustomId

    Gets the custom id of the component if possible; otherwise null.

    Declaration
    public string CustomId { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    Label

    Gets the label of the component; this is the text shown above it.

    Declaration
    public string Label { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    MaxLength

    Gets the maximum length of the inputted text.

    Declaration
    public int? MaxLength { get; }
    Property Value
    Type Description
    Nullable<Int32>
    | Improve this Doc View Source

    MinLength

    Gets the minimum length of the inputted text.

    Declaration
    public int? MinLength { get; }
    Property Value
    Type Description
    Nullable<Int32>
    | Improve this Doc View Source

    Placeholder

    Gets the placeholder of the component.

    Declaration
    public string Placeholder { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    Required

    Gets whether users are required to input text.

    Declaration
    public bool? Required { get; }
    Property Value
    Type Description
    Nullable<Boolean>
    | Improve this Doc View Source

    Style

    Gets the style of the component.

    Declaration
    public TextInputStyle Style { get; }
    Property Value
    Type Description
    TextInputStyle
    | Improve this Doc View Source

    Type

    Gets the ComponentType of this Message Component.

    Declaration
    public ComponentType Type { get; }
    Property Value
    Type Description
    ComponentType
    | Improve this Doc View Source

    Value

    Gets the default value of the component.

    Declaration
    public string Value { get; }
    Property Value
    Type Description
    String

    Implements

    IMessageComponent

    Theme

    • Improve this Doc
    • View Source
    In This Article
    Back to top Discord.Net (c) 2015-2022 3.7.2