Table of Contents

Interface IModalComponentBuilder

Namespace
Discord.Interactions.Builders
Assembly
Discord.Net.Interactions.dll
public interface IModalComponentBuilder

Properties

Attributes

Gets a collection of the attributes of this component.

IReadOnlyCollection<Attribute> Attributes { get; }

Property Value

IReadOnlyCollection<Attribute>

ComponentType

Gets the component type of this input component.

ComponentType ComponentType { get; }

Property Value

ComponentType

DefaultValue

Gets the default value of this input component property.

object DefaultValue { get; }

Property Value

object

Modal

Gets the parent modal of this input component.

ModalBuilder Modal { get; }

Property Value

ModalBuilder

PropertyInfo

Get the PropertyInfo of this component's property.

PropertyInfo PropertyInfo { get; }

Property Value

PropertyInfo

Type

Get the reference type of this input component.

Type Type { get; }

Property Value

Type

Methods

SetDefaultValue(object)

IModalComponentBuilder SetDefaultValue(object value)

Parameters

value object

New value of the DefaultValue.

Returns

IModalComponentBuilder

The builder instance.

WithAttributes(params Attribute[])

Adds attributes to Attributes.

IModalComponentBuilder WithAttributes(params Attribute[] attributes)

Parameters

attributes Attribute[]

New attributes to be added to Attributes.

Returns

IModalComponentBuilder

The builder instance.

WithType(Type)

Sets Type.

IModalComponentBuilder WithType(Type type)

Parameters

type Type

New value of the Type.

Returns

IModalComponentBuilder

The builder instance.