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
IInputComponentBuildermodal
ModalInfo
Properties
Attributes
Gets a collection of the attributes of this command.
public IReadOnlyCollection<Attribute> Attributes { get; }
Property Value
ComponentType
Gets the type of this component.
public ComponentType ComponentType { get; }
Property Value
CustomId
Gets the custom id of this component.
public string CustomId { get; }
Property Value
DefaultValue
Gets the default value of this component.
public object DefaultValue { get; }
Property Value
IsRequired
Gets whether or not this component requires a user input.
public bool IsRequired { get; }
Property Value
Label
Gets the label of this component.
public string Label { get; }
Property Value
Modal
Gets the parent modal of this component.
public ModalInfo Modal { get; }
Property Value
PropertyInfo
Gets the property linked to this component.
public PropertyInfo PropertyInfo { get; }
Property Value
Type
Gets the reference type of this component.
public Type Type { get; }
Property Value
TypeConverter
Gets the ComponentTypeConverter assigned to this component.
public ComponentTypeConverter TypeConverter { get; }