Carbon
CoreClasses

AnySelectMenu

Extends

Extended by

Constructors

new AnySelectMenu()

new AnySelectMenu(data?): AnySelectMenu

Parameters

ParameterType
data?object
data.additionalData?ComponentAdditionalData

Returns

AnySelectMenu

Inherited from

BaseComponent.constructor

Properties

PropertyModifierTypeDefault valueDescriptionOverridesInherited from
additionalDatapublicnull | ComponentAdditionalDatanull--BaseComponent.additionalData
customIdabstractstringundefinedThe custom ID of the component-BaseComponent.customId
deferpublicbooleanfalseWhether the component response should be automatically deferred-BaseComponent.defer
disabled?publicbooleanundefined---
ephemeralpublicbooleanfalseWhether the component response should be ephemeral-BaseComponent.ephemeral
maxValues?publicnumberundefined---
minValues?publicnumberundefined---
placeholder?publicstringundefined---
typeabstractAnySelectMenuComponentTypeundefinedThe type of the componentBaseComponent.type-

Methods

createId()

createId(additionalData): string

Create a custom ID to use for this component that embeds additional data that you want to be handed

Parameters

ParameterTypeDescription
additionalDatanull | ComponentAdditionalDataThe additional data that you want to be passed in this component's custom ID

Returns

string

The custom ID to use

Inherited from

BaseComponent.createId


run()

abstract run(interaction): Promise<void>

Parameters

ParameterType
interactionAnySelectMenuInteraction

Returns

Promise<void>


serialize()

serialize(): APISelectMenuComponent

Returns

APISelectMenuComponent

Overrides

BaseComponent.serialize


serializeOptions()

abstract serializeOptions(): object | object | object | object | object

Returns

object | object | object | object | object

On this page

Edit on GitHub