Table of Contents

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

other DiscordLabelComponent

The 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

label string

The label for the modal field.

description string

The description for the modal field.

component ILabelComponent

The component to attach to the label. This parameter is added for future-proof support. Please use either WithTextComponent(DiscordTextInputComponent) or WithSelectComponent(DiscordBaseSelectComponent).