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 the type of component attached to the label (e.g., DiscordTextInputComponent, DiscordBaseSelectComponent, DiscordRadioGroupComponent, DiscordCheckboxGroupComponent, DiscordCheckboxComponent, or DiscordFileUploadComponent).
Methods
- GetChildren()
Gets the child components of this component, if any.
- WithCheckboxComponent(DiscordCheckboxComponent)
Sets the checkbox component for the label.
- WithCheckboxGroupComponent(DiscordCheckboxGroupComponent)
Sets the checkbox group component for the label.
- WithFileUploadComponent(DiscordFileUploadComponent)
Sets the file upload component for the label.
- WithId(int)
Assigns a unique id to this component.
- WithRadioGroupComponent(DiscordRadioGroupComponent)
Sets the radio group component for the label.
- WithSelectComponent(DiscordBaseSelectComponent)
Sets the string select component for the label.
- WithTextComponent(DiscordTextInputComponent)
Sets the text component for the label.