Table of Contents

Constructor DiscordStringSelectComponent

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

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

Constructs a new DiscordStringSelectComponent.

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

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.

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

Constructs a new DiscordStringSelectComponent for modals.

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

Parameters

label string

Maximum count of selectable options.

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.

DiscordStringSelectComponent()

Constructs a new DiscordStringSelectComponent.

public DiscordStringSelectComponent()