Table of Contents

Class DiscordTextComponent

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

Represents a text component that can be submitted. Fires ComponentInteractionCreated event when submitted.

public sealed class DiscordTextComponent : DiscordComponent
Inheritance
DiscordTextComponent
Inherited Members

Constructors

DiscordTextComponent(DiscordTextComponent)

Constructs a new text component based on another text component.

DiscordTextComponent(TextComponentStyle, string, string, string, int?, int?, bool, string)

Constructs a new text component field with the specified options.

Properties

Label

The text description to apply to the text component.

MaxLength

The maximal length of text input.

MinLength

The minimal length of text input. Defaults to 0.

Placeholder

The placeholder for the text component.

Required

Whether this text component is required. Defaults to true.

Style

The style of the text component.

Value

The pre-filled value for the text component.