Table of Contents

Class InputComponentInfo

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

Represents the base info class for IModal input components.

public abstract class InputComponentInfo
Inheritance
InputComponentInfo
Derived
Inherited Members

Constructors

InputComponentInfo(IInputComponentBuilder, ModalInfo)

protected InputComponentInfo(IInputComponentBuilder builder, ModalInfo modal)

Parameters

builder IInputComponentBuilder
modal ModalInfo

Properties

Attributes

Gets a collection of the attributes of this command.

public IReadOnlyCollection<Attribute> Attributes { get; }

Property Value

IReadOnlyCollection<Attribute>

ComponentType

Gets the type of this component.

public ComponentType ComponentType { get; }

Property Value

ComponentType

CustomId

Gets the custom id of this component.

public string CustomId { get; }

Property Value

string

DefaultValue

Gets the default value of this component.

public object DefaultValue { get; }

Property Value

object

IsRequired

Gets whether or not this component requires a user input.

public bool IsRequired { get; }

Property Value

bool

Label

Gets the label of this component.

public string Label { get; }

Property Value

string

Modal

Gets the parent modal of this component.

public ModalInfo Modal { get; }

Property Value

ModalInfo

PropertyInfo

Gets the property linked to this component.

public PropertyInfo PropertyInfo { get; }

Property Value

PropertyInfo

Type

Gets the reference type of this component.

public Type Type { get; }

Property Value

Type

TypeConverter

Gets the ComponentTypeConverter assigned to this component.

public ComponentTypeConverter TypeConverter { get; }

Property Value

ComponentTypeConverter