Interaction
Extended by
Type Parameters
| Type Parameter | Default type |
|---|---|
T extends InteractionData | InteractionData |
M extends undefined | Message | undefined | Message |
Properties
client
readonlyclient:Client<Transformers,CacheManagerStructure>
Defined in
transformers/src/factories/interaction.ts:77
id
readonlyid:string
Defined in
transformers/src/factories/interaction.ts:78
applicationId
readonlyapplicationId:string
Defined in
transformers/src/factories/interaction.ts:79
type
readonlytype:InteractionType
Defined in
transformers/src/factories/interaction.ts:80
token
readonlytoken:string
Defined in
transformers/src/factories/interaction.ts:81
version
readonlyversion:1=1
Defined in
transformers/src/factories/interaction.ts:82
appPermissions
readonlyappPermissions:string
Defined in
transformers/src/factories/interaction.ts:83
locale
readonlylocale:undefined|Locale
This is only undefined if type is PING
Defined in
transformers/src/factories/interaction.ts:85
entitlements
readonlyentitlements:EntitlementStructure[]
Defined in
transformers/src/factories/interaction.ts:86
authorizingIntegrationOwners
readonlyauthorizingIntegrationOwners:IntegrationTypeMap
Defined in
transformers/src/factories/interaction.ts:87
context
readonlycontext:undefined|InteractionContextType
Defined in
transformers/src/factories/interaction.ts:88
data
readonlydata:T
Defined in
transformers/src/factories/interaction.ts:89
message
readonlymessage:M
Defined in
transformers/src/factories/interaction.ts:90
Methods
reply()
reply(content, options)
reply(
content,options?):Promise<void>
Parameters
| Parameter | Type |
|---|---|
content | string |
options? | InteractionReplyOptions |
Returns
Promise<void>
Defined in
transformers/src/factories/interaction.ts:113
reply(options)
reply(
options):Promise<void>
Parameters
| Parameter | Type |
|---|---|
options | InteractionReplyOptions |
Returns
Promise<void>
Defined in
transformers/src/factories/interaction.ts:114
deferReply()
deferReply(
ephemeral):Promise<void>
Parameters
| Parameter | Type | Default value |
|---|---|---|
ephemeral | boolean | false |
Returns
Promise<void>
Defined in
transformers/src/factories/interaction.ts:160
deferComponentReply()
deferComponentReply(
ephemeral):Promise<void>
Parameters
| Parameter | Type | Default value |
|---|---|---|
ephemeral | boolean | false |
Returns
Promise<void>
Defined in
transformers/src/factories/interaction.ts:169
updateComponents()
updateComponents(content, options)
updateComponents(
content,options?):Promise<void>
Parameters
| Parameter | Type |
|---|---|
content | string |
options? | InteractionReplyOptions |
Returns
Promise<void>
Defined in
transformers/src/factories/interaction.ts:178
updateComponents(options)
updateComponents(
options):Promise<void>
Parameters
| Parameter | Type |
|---|---|
options | InteractionReplyOptions |
Returns
Promise<void>
Defined in
transformers/src/factories/interaction.ts:179
showChoices()
showChoices(
choices):Promise<void>
Parameters
| Parameter | Type |
|---|---|
choices | ChoiceStructure[] |
Returns
Promise<void>
Defined in
transformers/src/factories/interaction.ts:225
showModal()
showModal(title, id, components)
showModal(
title,id,components):Promise<void>
Parameters
| Parameter | Type |
|---|---|
title | string |
id | string |
components | ActionRowStructure[] |
Returns
Promise<void>
Defined in
transformers/src/factories/interaction.ts:232
showModal(options)
showModal(
options):Promise<void>
Parameters
| Parameter | Type |
|---|---|
options | InteractionShowModalOptions |
Returns
Promise<void>
Defined in
transformers/src/factories/interaction.ts:233
followUp()
followUp(content, options)
followUp(
content,options?):Promise<Message>
Parameters
| Parameter | Type |
|---|---|
content | string |
options? | InteractionReplyOptions |
Returns
Promise<Message>
Defined in
transformers/src/factories/interaction.ts:258
followUp(options)
followUp(
options):Promise<Message>
Parameters
| Parameter | Type |
|---|---|
options | InteractionReplyOptions |
Returns
Promise<Message>
Defined in
transformers/src/factories/interaction.ts:259
editReply()
editReply(content, options)
editReply(
content,options?):Promise<Message>
Parameters
| Parameter | Type |
|---|---|
content | string |
options? | InteractionEditOptions |
Returns
Promise<Message>
Defined in
transformers/src/factories/interaction.ts:302
editReply(options)
editReply(
options):Promise<Message>
Parameters
| Parameter | Type |
|---|---|
options | InteractionEditOptions |
Returns
Promise<Message>
Defined in
transformers/src/factories/interaction.ts:303
editFollowUp()
editFollowUp(messageId, content, options)
editFollowUp(
messageId,content,options?):Promise<Message>
Parameters
| Parameter | Type |
|---|---|
messageId | string |
content | string |
options? | InteractionEditOptions |
Returns
Promise<Message>
Defined in
transformers/src/factories/interaction.ts:327
editFollowUp(messageId, options)
editFollowUp(
messageId,options):Promise<Message>
Parameters
| Parameter | Type |
|---|---|
messageId | string |
options | InteractionEditOptions |
Returns
Promise<Message>
Defined in
transformers/src/factories/interaction.ts:328
deleteReply()
deleteReply():
Promise<void>
Returns
Promise<void>
Defined in
transformers/src/factories/interaction.ts:352
deleteFollowUp()
deleteFollowUp(
messageId):Promise<void>
Parameters
| Parameter | Type |
|---|---|
messageId | string |
Returns
Promise<void>
Defined in
transformers/src/factories/interaction.ts:356
fetchOriginalReply()
fetchOriginalReply():
Promise<Structure>
Returns
Promise<Structure>
Defined in
transformers/src/factories/interaction.ts:360
isPingInteraction()
isPingInteraction(): this is Interaction<undefined, undefined | Message>
Returns
this is Interaction<undefined, undefined | Message>
Defined in
transformers/src/factories/interaction.ts:364
isApplicationCommandInteraction()
isApplicationCommandInteraction():
this is Interaction<ApplicationCommandData<undefined>, undefined>
Returns
this is Interaction<ApplicationCommandData<undefined>, undefined>
Defined in
transformers/src/factories/interaction.ts:368
isAutocompleteInteraction()
isAutocompleteInteraction():
this is Interaction<AutocompleteData, undefined>
Returns
this is Interaction<AutocompleteData, undefined>
Defined in
transformers/src/factories/interaction.ts:372
isMessageComponentInteraction()
isMessageComponentInteraction(): this is Interaction<MessageComponentData<undefined | string[]>, Message>
Returns
this is Interaction<MessageComponentData<undefined | string[]>, Message>
Defined in
transformers/src/factories/interaction.ts:376
isModalSubmitInteraction()
isModalSubmitInteraction():
this is Interaction<ModalSubmitData, undefined>
Returns
this is Interaction<ModalSubmitData, undefined>
Defined in
transformers/src/factories/interaction.ts:380
inGuild()
inGuild():
this is GuildInteraction<T, M>
Returns
this is GuildInteraction<T, M>
Defined in
transformers/src/factories/interaction.ts:384
inDM()
inDM():
this is DMInteraction<T, M>
Returns
this is DMInteraction<T, M>