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
| Name | Type |
|---|---|
option | SelectMenuOption |
Returns
Defined in
packages/libcord/src/structures/components/SelectMenu.ts:40
setCustomID
▸ setCustomID(id): SelectMenu
Parameters
| Name | Type |
|---|---|
id | string |
Returns
Defined in
packages/libcord/src/structures/components/SelectMenu.ts:36
setDisabled
▸ setDisabled(disabled?): SelectMenu
Parameters
| Name | Type | Default value |
|---|---|---|
disabled | boolean | true |
Returns
Defined in
packages/libcord/src/structures/components/SelectMenu.ts:28
setPlaceholder
▸ setPlaceholder(holder): SelectMenu
Parameters
| Name | Type |
|---|---|
holder | string |
Returns
Defined in
packages/libcord/src/structures/components/SelectMenu.ts:32
toJSON
▸ toJSON(): object
Returns
object