Table of Contents

Method AddTextInput

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

AddTextInput(DiscordTextInputComponent, string, string?)

Adds a new text input to the modal.

public DiscordModalBuilder AddTextInput(DiscordTextInputComponent input, string label, string? description = null)

Parameters

input DiscordTextInputComponent

The text input to add to this modal

label string

A label text shown above the text input.

description string

An optional description for the text input.

Returns

DiscordModalBuilder

The updated builder to chain calls with.