Table of Contents

Class ModalCommandBuilder

Namespace
Discord.Interactions.Builders
Assembly
Discord.Net.Interactions.dll

Represents a builder for creating a ModalCommandInfo.

public class ModalCommandBuilder : CommandBuilder<ModalCommandInfo, ModalCommandBuilder, ModalCommandParameterBuilder>, ICommandBuilder
Inheritance
ModalCommandBuilder
Implements
Inherited Members

Constructors

ModalCommandBuilder(ModuleBuilder)

Initializes a new ModalCommandBuilder.

public ModalCommandBuilder(ModuleBuilder module)

Parameters

module ModuleBuilder

Parent module of this modal.

ModalCommandBuilder(ModuleBuilder, string, ExecuteCallback)

Initializes a new ModalCommandBuilder.

public ModalCommandBuilder(ModuleBuilder module, string name, ExecuteCallback callback)

Parameters

module ModuleBuilder

Parent module of this modal.

name string

Name of this modal.

callback ExecuteCallback

Execution callback of this modal.

Properties

Instance

protected override ModalCommandBuilder Instance { get; }

Property Value

ModalCommandBuilder

Methods

AddParameter(Action<ModalCommandParameterBuilder>)

Adds a modal parameter to the parameters collection.

public override ModalCommandBuilder AddParameter(Action<ModalCommandParameterBuilder> configure)

Parameters

configure Action<ModalCommandParameterBuilder>

ModalCommandParameterBuilder factory.

Returns

ModalCommandBuilder

The builder instance.