Table of Contents

Class DiscordModalBuilder

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

Represents a builder class to construct modals with.

public class DiscordModalBuilder
Inheritance
DiscordModalBuilder

Properties

Components

Gets the components to be displayed in this modal.

CustomId

Gets the Custom ID of this modal.

Title

Gets or sets the title of the modal.

Methods

AddSelectMenu(BaseDiscordSelectComponent, string, string?)

Adds a select input to this modal.

AddTextDisplay(string)

Adds a block of text to the modal. All markdown supported.

AddTextInput(DiscordTextInputComponent, string, string?)

Adds a new text input to the modal.

Clear()
WithCustomId(string)

Sets the custom ID of the modal.

WithTitle(string)

Sets the title for the modal.