StringSelectMenuBuilder

export class StringSelectMenuBuilder extends BuilderStringSelectMenuComponent
export class StringSelectMenuBuilder extends BuilderStringSelectMenuComponent
Class used to build select menu components to be sent through the API
constructor(data?)
Constructs a new instance of the StringSelectMenuBuilder class
NameTypeOptionalDescription
dataPartial<StringSelectMenuComponentData | APIStringSelectComponent>YesNone
addOptions(...options):this
Adds options to this select menu
NameTypeOptionalDescription
...optionsRestOrArray<BuildersSelectMenuOption | SelectMenuComponentOptionData | APISelectMenuOption>NoThe options to add to this select menu
Static
Creates a new select menu builder from json data
NameTypeOptionalDescription
otherJSONEncodable<APIStringSelectComponent> | APIStringSelectComponentNoThe other data
setOptions(...options):this
Sets the options on this select menu
NameTypeOptionalDescription
...optionsRestOrArray<BuildersSelectMenuOption | SelectMenuComponentOptionData | APISelectMenuOption>NoThe options to set on this select menu