Table of Contents

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

string

Description

Gets the label description of this input component.

string Description { get; }

Property Value

string

IsRequired

Gets whether this input component is required.

bool IsRequired { get; }

Property Value

bool

Label

Gets the label of this input component.

string Label { get; }

Property Value

string

TypeConverter

Get the ModalComponentTypeConverter assigned to this input.

ModalComponentTypeConverter TypeConverter { get; }

Property Value

ModalComponentTypeConverter

Methods

SetIsRequired(bool)

Sets IsRequired.

IInputComponentBuilder SetIsRequired(bool isRequired)

Parameters

isRequired bool

New value of the IsRequired.

Returns

IInputComponentBuilder

The builder instance.

WithCustomId(string)

Sets CustomId.

IInputComponentBuilder WithCustomId(string customId)

Parameters

customId string

New value of the CustomId.

Returns

IInputComponentBuilder

The builder instance.

WithDescription(string)

IInputComponentBuilder WithDescription(string description)

Parameters

description string

New value of the Description.

Returns

IInputComponentBuilder

The builder instance.

WithLabel(string)

Sets Label.

IInputComponentBuilder WithLabel(string label)

Parameters

label string

New value of the Label.

Returns

IInputComponentBuilder

The builder instance.