Skip to content

InteractionResponseCallbackData

Interface: InteractionResponseCallbackData

Section titled “Interface: InteractionResponseCallbackData”

Defined in: types/responses.ts:18

  • Omit<APIInteractionResponseCallbackData, "components" | "embeds" | "attachments">

optional attachments?: (APIAttachment | AttachmentBuilder)[]

Defined in: types/responses.ts:45

Attachments to include with the message.


optional components?: (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


optional embeds?: (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


optional files?: (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.