Class InputComponentInfo
Represents the base info class for IModal input components.
Namespace: Discord.Interactions
Assembly: Discord.Net.Interactions.dll
Syntax
public abstract class InputComponentInfo : object
Constructors
| Improve this Doc View SourceInputComponentInfo(IInputComponentBuilder, ModalInfo)
Declaration
protected InputComponentInfo(IInputComponentBuilder builder, ModalInfo modal)
Parameters
Type | Name | Description |
---|---|---|
IInputComponentBuilder | builder | |
ModalInfo | modal |
Properties
| Improve this Doc View SourceAttributes
Gets a collection of the attributes of this command.
Declaration
public IReadOnlyCollection<Attribute> Attributes { get; }
Property Value
Type | Description |
---|---|
IReadOnlyCollection<Attribute> |
ComponentType
Gets the type of this component.
Declaration
public ComponentType ComponentType { get; }
Property Value
Type | Description |
---|---|
ComponentType |
CustomId
Gets the custom id of this component.
Declaration
public string CustomId { get; }
Property Value
Type | Description |
---|---|
String |
DefaultValue
Gets the default value of this component.
Declaration
public object DefaultValue { get; }
Property Value
Type | Description |
---|---|
Object |
IsRequired
Gets whether or not this component requires a user input.
Declaration
public bool IsRequired { get; }
Property Value
Type | Description |
---|---|
Boolean |
Label
Gets the label of this component.
Declaration
public string Label { get; }
Property Value
Type | Description |
---|---|
String |
Modal
Gets the parent modal of this component.
Declaration
public ModalInfo Modal { get; }
Property Value
Type | Description |
---|---|
ModalInfo |
PropertyInfo
Gets the property linked to this component.
Declaration
public PropertyInfo PropertyInfo { get; }
Property Value
Type | Description |
---|---|
PropertyInfo |
Type
Gets the reference type of this component.
Declaration
public Type Type { get; }
Property Value
Type | Description |
---|---|
Type |
TypeConverter
Gets the ComponentTypeConverter assigned to this component.
Declaration
public ComponentTypeConverter TypeConverter { get; }
Property Value
Type | Description |
---|---|
ComponentTypeConverter |