Skip to main content

StringSelectComponent

Documentation


Documentation / @discordeno/types / StringSelectComponent

Interface: StringSelectComponent

Defined in: discordeno/components.ts:104

https://docs.discord.com/developers/components/reference#string-select-string-select-structure

Extends

Properties

customId

customId: string

Defined in: discordeno/components.ts:108

A custom identifier for this component. Maximum 100 characters.


disabled?

optional disabled?: boolean

Defined in: discordeno/components.ts:134

Whether select menu is disabled

Remarks

This value cannot be set for select menus in modals

Default

false

id?

optional id?: number

Defined in: discordeno/components.ts:42

32 bit integer used as an optional identifier for component

Inherited from

BaseComponent.id


maxValues?

optional maxValues?: number

Defined in: discordeno/components.ts:116

The maximum number of items that can be selected. Default 1. Max 25.


minValues?

optional minValues?: number

Defined in: discordeno/components.ts:114

The minimum number of items that must be selected. Default 1. Between 0-25.


options

options: SelectOption[]

Defined in: discordeno/components.ts:110

The choices! Maximum of 25 items.


placeholder?

optional placeholder?: string

Defined in: discordeno/components.ts:112

A custom placeholder text if nothing is selected. Maximum 150 characters.


required?

optional required?: boolean

Defined in: discordeno/components.ts:125

Whether this component is required to be filled

Remarks

This value is only valid for string select menus in modals

Default

true

type

type: StringSelect

Defined in: discordeno/components.ts:105

The type of the component

Overrides

BaseComponent.type