v2componentsbuilder
Version:
A discord.js v2components builder
31 lines (30 loc) • 916 B
TypeScript
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;
}