Constructor DiscordLabelComponent
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
DiscordLabelComponent(DiscordLabelComponent)
Constructs a new label component based on another label component.
public DiscordLabelComponent(DiscordLabelComponent other)
Parameters
otherDiscordLabelComponentThe label component to copy.
DiscordLabelComponent(string, string?, ILabelComponent?)
Constructs a new label component field with the specified options.
public DiscordLabelComponent(string label, string? description = null, ILabelComponent? component = null)
Parameters
labelstringThe label for the modal field.
descriptionstringThe description for the modal field.
componentILabelComponentThe component to attach to the label. This parameter is added for future-proof support. Please use either WithTextComponent(DiscordTextInputComponent) or WithSelectComponent(DiscordBaseSelectComponent).