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
ComponentType
Gets the component type of this input component.
ComponentType ComponentType { get; }
Property Value
DefaultValue
Gets the default value of this input component property.
object DefaultValue { get; }
Property Value
Modal
Gets the parent modal of this input component.
ModalBuilder Modal { get; }
Property Value
PropertyInfo
Get the PropertyInfo of this component's property.
PropertyInfo PropertyInfo { get; }
Property Value
Type
Get the reference type of this input component.
Type Type { get; }
Property Value
Methods
SetDefaultValue(object)
Sets DefaultValue.
IModalComponentBuilder SetDefaultValue(object value)
Parameters
valueobjectNew value of the DefaultValue.
Returns
- IModalComponentBuilder
The builder instance.
WithAttributes(params Attribute[])
Adds attributes to Attributes.
IModalComponentBuilder WithAttributes(params Attribute[] attributes)
Parameters
attributesAttribute[]New attributes to be added to Attributes.
Returns
- IModalComponentBuilder
The builder instance.
WithType(Type)
Sets Type.
IModalComponentBuilder WithType(Type type)
Parameters
Returns
- IModalComponentBuilder
The builder instance.