Table of Contents

Constructor DiscordRoleSelectComponent

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

DiscordRoleSelectComponent(string, string, int, int, bool, IEnumerable<DiscordSelectDefaultValue>?)

Constructs a new DiscordRoleSelectComponent.

public DiscordRoleSelectComponent(string placeholder, string customId = null, int minOptions = 1, int maxOptions = 1, bool disabled = false, IEnumerable<DiscordSelectDefaultValue>? defaultValues = null)

Parameters

placeholder string

Text to show if no option is selected.

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.

defaultValues IEnumerable<DiscordSelectDefaultValue>

The default values of this select menu.

DiscordRoleSelectComponent(string, string, string, int, int, bool, IEnumerable<DiscordSelectDefaultValue>?)

Constructs a new DiscordRoleSelectComponent for modals.

public DiscordRoleSelectComponent(string label, string placeholder, string customId = null, int minOptions = 1, int maxOptions = 1, bool disabled = false, IEnumerable<DiscordSelectDefaultValue>? defaultValues = null)

Parameters

label string

Maximum count of selectable options.

placeholder string

Text to show if no option is selected.

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.

defaultValues IEnumerable<DiscordSelectDefaultValue>

The default values of this select menu.

DiscordRoleSelectComponent()

Constructs a new DiscordRoleSelectComponent.

public DiscordRoleSelectComponent()