DMInteraction
Extends
Interaction
<T
,M
>
Type Parameters
Type Parameter | Default type |
---|---|
T extends InteractionData | - |
M extends undefined | Message | undefined | Message |
Constructors
new DMInteraction()
new DMInteraction<
T
,M
>(client
,interaction
,isDM
,data
?):DMInteraction
<T
,M
>
Parameters
Parameter | Type |
---|---|
client | Client <Transformers , CacheManagerStructure > |
interaction | DMStructure |
isDM | boolean |
data ? | T |
Returns
DMInteraction
<T
, M
>
Inherited from
Interaction<T, M>.constructor
Defined in
transformers/src/factories/interaction.ts:440
Properties
client
readonly
client:Client
<Transformers
,CacheManagerStructure
>
Inherited from
Defined in
transformers/src/factories/interaction.ts:77
id
readonly
id:string
Inherited from
Defined in
transformers/src/factories/interaction.ts:78
applicationId
readonly
applicationId:string
Inherited from
Defined in
transformers/src/factories/interaction.ts:79
type
readonly
type:InteractionType
Inherited from
Defined in
transformers/src/factories/interaction.ts:80
token
readonly
token:string
Inherited from
Defined in
transformers/src/factories/interaction.ts:81
version
readonly
version:1
=1
Inherited from
Defined in
transformers/src/factories/interaction.ts:82
appPermissions
readonly
appPermissions:string
Inherited from
Defined in
transformers/src/factories/interaction.ts:83
locale
readonly
locale:undefined
|Locale
This is only undefined if type is PING
Inherited from
Defined in
transformers/src/factories/interaction.ts:85
entitlements
readonly
entitlements:EntitlementStructure
[]
Inherited from
Defined in
transformers/src/factories/interaction.ts:86
authorizingIntegrationOwners
readonly
authorizingIntegrationOwners:IntegrationTypeMap
Inherited from
Interaction
.authorizingIntegrationOwners
Defined in
transformers/src/factories/interaction.ts:87
context
readonly
context:undefined
|InteractionContextType
Inherited from
Defined in
transformers/src/factories/interaction.ts:88
data
readonly
data:T
Inherited from
Defined in
transformers/src/factories/interaction.ts:89
message
readonly
message:M
Inherited from
Defined in
transformers/src/factories/interaction.ts:90
isPingInteraction()
isPingInteraction: () =>
this is DMInteraction<undefined, undefined>
Returns
this is DMInteraction<undefined, undefined>
Overrides
Defined in
transformers/src/factories/interaction.ts:425
isApplicationCommandInteraction()
isApplicationCommandInteraction: () =>
this is DMInteraction<ApplicationCommandData<undefined>, undefined>
Returns
this is DMInteraction<ApplicationCommandData<undefined>, undefined>
Overrides
Interaction
.isApplicationCommandInteraction
Defined in
transformers/src/factories/interaction.ts:426
isAutocompleteInteraction()
isAutocompleteInteraction: () =>
this is DMInteraction<AutocompleteData, undefined>
Returns
this is DMInteraction<AutocompleteData, undefined>
Overrides
Interaction
.isAutocompleteInteraction
Defined in
transformers/src/factories/interaction.ts:427
isMessageComponentInteraction()
isMessageComponentInteraction: () => this is DMInteraction<MessageComponentData<undefined | string[]>, Message>
Returns
this is DMInteraction<MessageComponentData<undefined | string[]>, Message>
Overrides
Interaction
.isMessageComponentInteraction
Defined in
transformers/src/factories/interaction.ts:428
isModalSubmitInteraction()
isModalSubmitInteraction: () =>
this is DMInteraction<ModalSubmitData, undefined>
Returns
this is DMInteraction<ModalSubmitData, undefined>
Overrides
Interaction
.isModalSubmitInteraction
Defined in
transformers/src/factories/interaction.ts:429
user
readonly
user:User
Defined in
transformers/src/factories/interaction.ts:438
Methods
reply()
reply(content, options)
reply(
content
,options
?):Promise
<void
>
Parameters
Parameter | Type |
---|---|
content | string |
options ? | InteractionReplyOptions |
Returns
Promise
<void
>
Inherited from
Defined in
transformers/src/factories/interaction.ts:113
reply(options)
reply(
options
):Promise
<void
>
Parameters
Parameter | Type |
---|---|
options | InteractionReplyOptions |
Returns
Promise
<void
>
Inherited from
Defined in
transformers/src/factories/interaction.ts:114
deferReply()
deferReply(
ephemeral
):Promise
<void
>
Parameters
Parameter | Type | Default value |
---|---|---|
ephemeral | boolean | false |
Returns
Promise
<void
>
Inherited from
Defined in
transformers/src/factories/interaction.ts:160
deferComponentReply()
deferComponentReply(
ephemeral
):Promise
<void
>
Parameters
Parameter | Type | Default value |
---|---|---|
ephemeral | boolean | false |
Returns
Promise
<void
>
Inherited from
Interaction
.deferComponentReply
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
>
Inherited from
Defined in
transformers/src/factories/interaction.ts:178
updateComponents(options)
updateComponents(
options
):Promise
<void
>
Parameters
Parameter | Type |
---|---|
options | InteractionReplyOptions |
Returns
Promise
<void
>
Inherited from
Defined in
transformers/src/factories/interaction.ts:179
showChoices()
showChoices(
choices
):Promise
<void
>
Parameters
Parameter | Type |
---|---|
choices | ChoiceStructure [] |
Returns
Promise
<void
>
Inherited from
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
>
Inherited from
Defined in
transformers/src/factories/interaction.ts:232
showModal(options)
showModal(
options
):Promise
<void
>
Parameters
Parameter | Type |
---|---|
options | InteractionShowModalOptions |
Returns
Promise
<void
>
Inherited from
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
>
Inherited from
Defined in
transformers/src/factories/interaction.ts:258
followUp(options)
followUp(
options
):Promise
<Message
>
Parameters
Parameter | Type |
---|---|
options | InteractionReplyOptions |
Returns
Promise
<Message
>
Inherited from
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
>
Inherited from
Defined in
transformers/src/factories/interaction.ts:302
editReply(options)
editReply(
options
):Promise
<Message
>
Parameters
Parameter | Type |
---|---|
options | InteractionEditOptions |
Returns
Promise
<Message
>
Inherited from
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
>
Inherited from
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
>
Inherited from
Defined in
transformers/src/factories/interaction.ts:328
deleteReply()
deleteReply():
Promise
<void
>
Returns
Promise
<void
>
Inherited from
Defined in
transformers/src/factories/interaction.ts:352
deleteFollowUp()
deleteFollowUp(
messageId
):Promise
<void
>
Parameters
Parameter | Type |
---|---|
messageId | string |
Returns
Promise
<void
>
Inherited from
Defined in
transformers/src/factories/interaction.ts:356
fetchOriginalReply()
fetchOriginalReply():
Promise
<Structure
>
Returns
Promise
<Structure
>
Inherited from
Interaction
.fetchOriginalReply
Defined in
transformers/src/factories/interaction.ts:360
inGuild()
inGuild():
this is GuildInteraction<T, M>
Returns
this is GuildInteraction<T, M>
Inherited from
Defined in
transformers/src/factories/interaction.ts:384
inDM()
inDM():
this is DMInteraction<T, M>
Returns
this is DMInteraction<T, M>