Table of Contents

Class LabelComponent

Namespace
Discord
Assembly
Discord.Net.Core.dll

Represents a layout component that wraps modal components (text input, select menu or file upload) with a label and description.

public class LabelComponent : IMessageComponent
Inheritance
LabelComponent
Implements
Inherited Members

Properties

Component

Gets the component within the label.

public IMessageComponent Component { get; }

Property Value

IMessageComponent

Description

Gets the description text for the label.

public string Description { get; }

Property Value

string

Id

Gets the id for the component.

public int? Id { get; }

Property Value

int?

Label

Gets the label text.

public string Label { get; }

Property Value

string

Type

Gets the ComponentType of this Message Component.

public ComponentType Type { get; }

Property Value

ComponentType

Methods

ToBuilder()

public IMessageComponentBuilder ToBuilder()

Returns

IMessageComponentBuilder