InteractionResponseCallbackData
Interface: InteractionResponseCallbackData
Section titled “Interface: InteractionResponseCallbackData”Defined in: types/responses.ts:18
Extends
Section titled “Extends”Omit<APIInteractionResponseCallbackData,"components"|"embeds"|"attachments">
Properties
Section titled “Properties”attachments?
Section titled “attachments?”
optionalattachments?: (APIAttachment|AttachmentBuilder)[]
Defined in: types/responses.ts:45
Attachments to include with the message.
components?
Section titled “components?”
optionalcomponents?: (APIMessageTopLevelComponent|JSONEncodable<APIMessageTopLevelComponent>)[]
Defined in: types/responses.ts:33
The components to include with the message
Application-owned webhooks can always send components. Non-application-owned webhooks cannot send interactive components, and the components field will be ignored unless they set the with_components query param.
Can be ActionRowBuilder or raw APIMessageActionRowComponent
If using Components V2, ensure that flags includes MessageFlags.IsComponentsV2 is set.
https://discord.com/developers/docs/components/reference
embeds?
Section titled “embeds?”
optionalembeds?: (APIEmbed|JSONEncodable<APIEmbed>)[]
Defined in: types/responses.ts:41
Embedded rich content
Can be EmbedBuilder or raw APIEmbed
https://discord.com/developers/docs/resources/channel#embed-object
files?
Section titled “files?”
optionalfiles?: (AttachmentBuilder|RawFile)[]
Defined in: types/responses.ts:49
Resolves an array of AttachmentBuilder into files and attachments arrays ready to be sent with the API call.
