Interface IInputComponentBuilder
- Namespace
- Discord.Interactions.Builders
- Assembly
- Discord.Net.Interactions.dll
Represent a builder for creating InputComponentInfo.
public interface IInputComponentBuilder : IModalComponentBuilder
- Inherited Members
Properties
CustomId
Gets the custom id of this input component.
string CustomId { get; }
Property Value
Description
Gets the label description of this input component.
string Description { get; }
Property Value
IsRequired
Gets whether this input component is required.
bool IsRequired { get; }
Property Value
Label
Gets the label of this input component.
string Label { get; }
Property Value
TypeConverter
Get the ModalComponentTypeConverter assigned to this input.
ModalComponentTypeConverter TypeConverter { get; }
Property Value
Methods
SetIsRequired(bool)
Sets IsRequired.
IInputComponentBuilder SetIsRequired(bool isRequired)
Parameters
isRequiredboolNew value of the IsRequired.
Returns
- IInputComponentBuilder
The builder instance.
WithCustomId(string)
Sets CustomId.
IInputComponentBuilder WithCustomId(string customId)
Parameters
Returns
- IInputComponentBuilder
The builder instance.
WithDescription(string)
Sets Description.
IInputComponentBuilder WithDescription(string description)
Parameters
descriptionstringNew value of the Description.
Returns
- IInputComponentBuilder
The builder instance.
WithLabel(string)
Sets Label.
IInputComponentBuilder WithLabel(string label)
Parameters
Returns
- IInputComponentBuilder
The builder instance.