Class DiscordLabelComponent
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
Represents a label component.
public sealed class DiscordLabelComponent : DiscordComponent
- Inheritance
-
DiscordLabelComponent
- Inherited Members
Constructors
- DiscordLabelComponent(DiscordLabelComponent)
Constructs a new label component based on another label component.
- DiscordLabelComponent(string, string?, ILabelComponent?)
Constructs a new label component field with the specified options.
Properties
- Component
The attached component.
- Description
The description.
- Label
The label.
- SubComponentType
Helper to determine whether a DiscordTextInputComponent or DiscordBaseSelectComponent is attached to the label.
Methods
- WithFileUploadComponent(DiscordFileUploadComponent)
Sets the file upload component for the label.
- WithId(int)
Assigns a unique id to this component.
- WithSelectComponent(DiscordBaseSelectComponent)
Sets the string select component for the label.
- WithTextComponent(DiscordTextInputComponent)
Sets the text component for the label.