Table of Contents

Class DiscordInteractionModalBuilder

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

Constructs an interaction modal response.

public sealed class DiscordInteractionModalBuilder
Inheritance
DiscordInteractionModalBuilder
Inherited Members

Constructors

DiscordInteractionModalBuilder(string?, string?)

Constructs a new empty interaction modal builder.

Properties

Components

Components to send on this interaction response.

CustomId

Custom id of modal.

ModalComponents

Components to send on this interaction response.

Title

Title of modal.

Methods

AddLabelComponent(DiscordLabelComponent)

Appends a label component to the builder.

AddLabelComponents(params DiscordLabelComponent[])

Appends a collection of label components to the builder.

AddModalComponents(params DiscordComponent[])

Appends a collection of components to the builder.

AddModalComponents(IEnumerable<DiscordActionRowComponent>)

Appends several rows of components to the message

AddTextComponent(DiscordTextInputComponent)

Appends a text component to the builder.

AddTextComponents(params DiscordTextInputComponent[])

Appends a collection of text components to the builder. Each call will append to a new row.

AddTextDisplayComponent(DiscordTextDisplayComponent)

Appends a text display component to the builder.

AddTextDisplayComponents(params DiscordTextDisplayComponent[])

Appends a collection of text display components to the builder.

Clear()

Allows for clearing the Interaction Response Builder so that it can be used again to send a new response.

WithCustomId(string)

Sets the custom id of the modal.

WithTitle(string)

Sets the title of the modal.