APIBaseSelectMenuComponent

https://discord.com/developers/docs/interactions/message-components#select-menus

Signature

export interface APIBaseSelectMenuComponent<T extends ComponentType.ChannelSelect | ComponentType.MentionableSelect | ComponentType.RoleSelect | ComponentType.StringSelect | ComponentType.UserSelect> extends APIBaseComponent<T>

Properties

custom_id: string;

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

placeholder?: string;

Custom placeholder text if nothing is selected, max 150 characters

min_values?: number;

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

@default1
max_values?: number;

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

@default1
disabled?: boolean;

Disable the select

@defaultfalse
required?: boolean;

Whether the select is required to answer in a modal

@defaulttrue