Skip to main content

StringSelectComponent

@discordeno/bot


Documentation / @discordeno/bot / StringSelectComponent

Interface: StringSelectComponent

Defined in: packages/types/dist/types/discordeno.d.ts:104

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

Extends

Properties

customId

customId: string

Defined in: packages/types/dist/types/discordeno.d.ts:107

A custom identifier for this component. Maximum 100 characters.


disabled?

optional disabled: boolean

Defined in: packages/types/dist/types/discordeno.d.ts:117

Whether or not this select is disabled


id?

optional id: number

Defined in: packages/types/dist/types/discordeno.d.ts:65

32 bit integer used as an optional identifier for component

Inherited from

BaseComponent.id


maxValues?

optional maxValues: number

Defined in: packages/types/dist/types/discordeno.d.ts:113

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


minValues?

optional minValues: number

Defined in: packages/types/dist/types/discordeno.d.ts:111

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


options

options: SelectOption[]

Defined in: packages/types/dist/types/discordeno.d.ts:115

The choices! Maximum of 25 items.


placeholder?

optional placeholder: string

Defined in: packages/types/dist/types/discordeno.d.ts:109

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


type

type: StringSelect

Defined in: packages/types/dist/types/discordeno.d.ts:105

The type of the component

Overrides

BaseComponent.type