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
Description
Gets the description text for the label.
public string Description { get; }
Property Value
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
Type
Gets the ComponentType of this Message Component.
public ComponentType Type { get; }
Property Value
Methods
ToBuilder()
Converts a IMessageComponent to a IMessageComponentBuilder.
public IMessageComponentBuilder ToBuilder()