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

CallbackHints

The hints to send on this interaction response.

CustomId

Custom id of modal.

ModalComponents

Components to send on this interaction response.

Title

Title of modal.

Methods

AddModalComponents(params DiscordComponent[])

Appends a collection of components to the builder.

AddModalComponents(IEnumerable<DiscordActionRowComponent>)

Appends several rows of components to the message

AddSelectComponent(DiscordBaseSelectComponent)

Appends a select component to the builder.

AddSelectComponents(params DiscordBaseSelectComponent[])

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

AddTextComponent(DiscordTextComponent)

Appends a text component to the builder.

AddTextComponents(params DiscordTextComponent[])

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

Clear()

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

ClearComponents()

Clears all message components on this builder.

WithCallbackHints(DiscordCallbackHintBuilder)

Provides the interaction response with DiscordInteractionCallbackHints.

WithCustomId(string)

Sets the custom id of the modal.

WithTitle(string)

Sets the title of the modal.