Skip to main content

Class: SelectMenu

Constructors

constructor

new SelectMenu()

Properties

custom_id

custom_id: string = "SelectMenu"

Defined in

packages/libcord/src/structures/components/SelectMenu.ts:23


disabled

Optional disabled: boolean

Defined in

packages/libcord/src/structures/components/SelectMenu.ts:26


options

options: APISelectMenuOption[] = []

Defined in

packages/libcord/src/structures/components/SelectMenu.ts:24


placeholder

Optional placeholder: string

Defined in

packages/libcord/src/structures/components/SelectMenu.ts:25


type

type: ComponentType = ComponentType.SelectMenu

Defined in

packages/libcord/src/structures/components/SelectMenu.ts:22

Methods

addOption

addOption(option): SelectMenu

Parameters

NameType
optionSelectMenuOption

Returns

SelectMenu

Defined in

packages/libcord/src/structures/components/SelectMenu.ts:40


setCustomID

setCustomID(id): SelectMenu

Parameters

NameType
idstring

Returns

SelectMenu

Defined in

packages/libcord/src/structures/components/SelectMenu.ts:36


setDisabled

setDisabled(disabled?): SelectMenu

Parameters

NameTypeDefault value
disabledbooleantrue

Returns

SelectMenu

Defined in

packages/libcord/src/structures/components/SelectMenu.ts:28


setPlaceholder

setPlaceholder(holder): SelectMenu

Parameters

NameType
holderstring

Returns

SelectMenu

Defined in

packages/libcord/src/structures/components/SelectMenu.ts:32


toJSON

toJSON(): object

Returns

object

Defined in

packages/libcord/src/structures/components/SelectMenu.ts:54