Skip to main content
Version: Next

APISelectMenuComponent

Hierarchy

  • APIBaseComponent<ComponentType.StringSelect | ComponentType.UserSelect | ComponentType.RoleSelect | ComponentType.MentionableSelect | ComponentType.ChannelSelect>
    • APISelectMenuComponent

Index

Properties

optionalchannel_types

channel_types?: ChannelType[]

List of channel types to include in the ChannelSelect component

custom_id

custom_id: string

A developer-defined identifier for the select menu, max 100 characters

optionaldisabled

disabled?: boolean

Disable the select

@default

false

optionalmax_values

max_values?: number

The maximum number of items that can be chosen; max 25

@default

1

optionalmin_values

min_values?: number

The minimum number of items that must be chosen; min 0, max 25

@default

1

optionaloptions

Specified choices in a select menu (only required and available for StringSelect, max 25)

optionalplaceholder

placeholder?: string

Custom placeholder text if nothing is selected, max 150 characters

type

type: StringSelect | UserSelect | RoleSelect | MentionableSelect | ChannelSelect

The type of the component