Table of Contents

Class ModalCommandParameterBuilder

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

Represents a builder for creating ModalCommandBuilder.

public class ModalCommandParameterBuilder : ParameterBuilder<ModalCommandParameterInfo, ModalCommandParameterBuilder>, IParameterBuilder
Inheritance
ModalCommandParameterBuilder
Implements
Inherited Members

Constructors

ModalCommandParameterBuilder(ICommandBuilder, string, Type)

Initializes a new ModalCommandParameterBuilder.

public ModalCommandParameterBuilder(ICommandBuilder command, string name, Type type)

Parameters

command ICommandBuilder

Parent command of this parameter.

name string

Name of this command.

type Type

Type of this parameter.

Properties

Instance

protected override ModalCommandParameterBuilder Instance { get; }

Property Value

ModalCommandParameterBuilder

IsModalParameter

Gets whether or not this parameter is an IModal.

public bool IsModalParameter { get; }

Property Value

bool

Modal

Gets the built ModalInfo class for this parameter, if IsModalParameter is true.

public ModalInfo Modal { get; }

Property Value

ModalInfo

TypeReader

Gets the TypeReader assigned to this parameter, if IsModalParameter is true.

public TypeReader TypeReader { get; }

Property Value

TypeReader

Methods

SetParameterType(Type)

public override ModalCommandParameterBuilder SetParameterType(Type type)

Parameters

type Type

New value of the ParameterType.

Returns

ModalCommandParameterBuilder

The builder instance.