Skip to content

MessageComponentData

Type Parameters

Type ParameterDefault type
T extends string[] | undefinedstring[] | undefined

Constructors

new MessageComponentData()

new MessageComponentData<T>(data): MessageComponentData<T>

Parameters

ParameterType
dataMessageComponentDataStructure

Returns

MessageComponentData<T>

Defined in

transformers/src/factories/interaction.ts:706

Properties

id

readonly id: string

Defined in

transformers/src/factories/interaction.ts:701


type

readonly type: ComponentType

Defined in

transformers/src/factories/interaction.ts:702


values

readonly values: T

Defined in

transformers/src/factories/interaction.ts:703


resolved?

readonly optional resolved: ResolvedDataStructure

Defined in

transformers/src/factories/interaction.ts:704

Methods

isButton()

isButton(): this is MessageComponentData<undefined | string[]>

Returns

this is MessageComponentData<undefined | string[]>

Defined in

transformers/src/factories/interaction.ts:713


isSelectMenu()

isSelectMenu(): this is MessageComponentData<string[]>

Returns

this is MessageComponentData<string[]>

Defined in

transformers/src/factories/interaction.ts:717