Skip to main content

ChannelSelectComponent

Documentation


Documentation / @discordeno/types / ChannelSelectComponent

Interface: ChannelSelectComponent

Defined in: discordeno/components.ts:308

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

Extends

Properties

channelTypes?

optional channelTypes?: ChannelTypes[]

Defined in: discordeno/components.ts:314

List of channel types to include in the options list


customId

customId: string

Defined in: discordeno/components.ts:312

A custom identifier for this component. Maximum 100 characters.


defaultValues?

optional defaultValues?: SelectMenuDefaultValue[]

Defined in: discordeno/components.ts:321

List of default values for auto-populated select menu components The number of default values must be in the range defined by minValues and maxValues


disabled?

optional disabled?: boolean

Defined in: discordeno/components.ts:343

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:325

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


minValues?

optional minValues?: number

Defined in: discordeno/components.ts:323

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


placeholder?

optional placeholder?: string

Defined in: discordeno/components.ts:316

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


required?

optional required?: boolean

Defined in: discordeno/components.ts:334

Whether this component is required to be filled

Remarks

This value is only valid for string select menus in modals

Default

true

type

type: ChannelSelect

Defined in: discordeno/components.ts:309

The type of the component

Overrides

BaseComponent.type