No summary provided.
Constructs a new instance of the
InteractionsAPI
className | Type | Optional | Description |
---|---|---|---|
rest | REST | No | None |
webhooks | WebhooksAPI | No | None |
Sends an autocomplete response to an interaction
Name | Type | Optional | Description |
---|---|---|---|
interactionId | Snowflake | No | The id of the interaction |
interactionToken | string | No | The token of the interaction |
callbackData | APICommandAutocompleteInteractionResponseCallbackData | No | The callback data for the autocomplete response |
options | Pick<RequestData, 'signal'> | Yes | The options to use when sending the autocomplete response |
Sends a modal response to an interaction
Name | Type | Optional | Description |
---|---|---|---|
interactionId | Snowflake | No | The id of the interaction |
interactionToken | string | No | The token of the interaction |
callbackData | APIModalInteractionResponseCallbackData | No | The modal callback data to send |
options | Pick<RequestData, 'signal'> | Yes | The options to use when sending the modal |
Defers the reply to an interaction
Name | Type | Optional | Description |
---|---|---|---|
interactionId | Snowflake | No | The id of the interaction |
interactionToken | string | No | The token of the interaction |
data | APIInteractionResponseDeferredChannelMessageWithSource['data'] | No | The data to use when deferring the reply |
options | Pick<RequestData, 'signal'> | Yes | The options to use when deferring |
Defers an update from a message component interaction
Name | Type | Optional | Description |
---|---|---|---|
interactionId | Snowflake | No | The id of the interaction |
interactionToken | string | No | The token of the interaction |
options | Pick<RequestData, 'signal'> | Yes | The options to use when deferring |
Deletes the initial reply to an interaction
Name | Type | Optional | Description |
---|---|---|---|
applicationId | Snowflake | No | The application id of the interaction |
interactionToken | string | No | The token of the interaction |
messageId | Snowflake | '@original' | Yes | The id of the message to delete. If omitted, the original reply will be deleted |
options | Pick<RequestData, 'signal'> | Yes | The options to use when deleting the reply |
Edits the initial reply to an interaction
Name | Type | Optional | Description |
---|---|---|---|
applicationId | Snowflake | No | The application id of the interaction |
interactionToken | string | No | The token of the interaction |
callbackData | APIInteractionResponseCallbackData & { files?: RawFile[]; } | No | The callback data to use when editing the reply |
messageId | Snowflake | '@original' | Yes | The id of the message to edit. If omitted, the original reply will be edited |
options | Pick<RequestData, 'signal'> | Yes | The options to use when editing the reply |
Reply to a deferred interaction
Name | Type | Optional | Description |
---|---|---|---|
applicationId | Snowflake | No | The application id of the interaction |
interactionToken | string | No | The token of the interaction |
body | APIInteractionResponseCallbackData & { files?: RawFile[]; } | No | The callback data to use when replying |
options | Pick<RequestData, 'signal'> | Yes | The options to use when replying |
Fetches the initial reply to an interaction
Name | Type | Optional | Description |
---|---|---|---|
applicationId | Snowflake | No | The application id of the interaction |
interactionToken | string | No | The token of the interaction |
options | Pick<RequestData, 'signal'> | No | The options to use when fetching the reply |
Replies to an interaction
Name | Type | Optional | Description |
---|---|---|---|
interactionId | Snowflake | No | The id of the interaction |
interactionToken | string | No | The token of the interaction |
body | APIInteractionResponseCallbackData & { files?: RawFile[]; } | No | The callback data to use when replying |
options | Pick<RequestData, 'signal'> | Yes | The options to use when replying |
Updates the the message the component interaction was triggered on
Name | Type | Optional | Description |
---|---|---|---|
interactionId | Snowflake | No | The id of the interaction |
interactionToken | string | No | The token of the interaction |
callbackData | APIInteractionResponseCallbackData & { files?: RawFile[]; } | No | The callback data to use when updating the interaction |
options | Pick<RequestData, 'signal'> | Yes | The options to use when updating the interaction |