UNPKG

v2componentsbuilder

Version:
31 lines (30 loc) 916 B
import { APIStringSelectComponent, APIMessageComponentEmoji } from 'discord-api-types/v10'; export declare class V2StringSelectBuilder { private custom_id; private options; private placeholder?; private min_values?; private max_values?; private disabled?; constructor(); setCustomId(custom_id: string): this; setPlaceholder(placeholder: string): this; setMinValues(min: number): this; setMaxValues(max: number): this; setDisabled(disabled: boolean): this; addOption(option: { label: string; value: string; description?: string; emoji?: APIMessageComponentEmoji; default?: boolean; }): this; setOptions(options: { label: string; value: string; description?: string; emoji?: APIMessageComponentEmoji; default?: boolean; }[]): this; toJSON(): APIStringSelectComponent; }