MessageComponentData
Type Parameters
Type Parameter | Default type |
---|---|
T extends string [] | undefined | string [] | undefined |
Constructors
new MessageComponentData()
new MessageComponentData<
T
>(data
):MessageComponentData
<T
>
Parameters
Parameter | Type |
---|---|
data | MessageComponentDataStructure |
Returns
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[]>