Table of Contents

Constructor DiscordStringSelectComponent

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

DiscordStringSelectComponent(string, IEnumerable<DiscordStringSelectComponentOption>, string, int, int, bool, bool?)

Constructs a new DiscordStringSelectComponent.

public DiscordStringSelectComponent(string placeholder, IEnumerable<DiscordStringSelectComponentOption> options, string customId = null, int minOptions = 0, int maxOptions = 1, bool disabled = false, bool? required = null)

Parameters

placeholder string

Text to show if no option is selected.

options IEnumerable<DiscordStringSelectComponentOption>

Array of options

customId string

The Id to assign to the select component.

minOptions int

Minimum count of selectable options.

maxOptions int

Maximum count of selectable options.

disabled bool

Whether this select component should be initialized as being disabled. User sees a greyed out select component that cannot be interacted with.

required bool?

Whether this select component is required. Applicable for Modals.

DiscordStringSelectComponent()

Constructs a new DiscordStringSelectComponent.

public DiscordStringSelectComponent()