Skip to main content

InteractionCallbackData

Documentation


Documentation / @discordeno/types / InteractionCallbackData

Interface: InteractionCallbackData

Defined in: discordeno/interactions.ts:38

Properties

allowedMentions?

optional allowedMentions?: AllowedMentions

Defined in: discordeno/interactions.ts:47

Allowed mentions for the message


attachments?

optional attachments?: Pick<DiscordAttachment, "id" | "description" | "filename">[]

Defined in: discordeno/interactions.ts:57

Attachment objects with filename and description


choices?

optional choices?: object[]

Defined in: discordeno/interactions.ts:65

Autocomplete choices (max of 25 choices)

name

name: string

nameLocalizations?

optional nameLocalizations?: { bg?: string; cs?: string; da?: string; de?: string; el?: string; en-GB?: string; en-US?: string; es-419?: string; es-ES?: string; fi?: string; fr?: string; hi?: string; hr?: string; hu?: string; id?: string; it?: string; ja?: string; ko?: string; lt?: string; nl?: string; no?: string; pl?: string; pt-BR?: string; ro?: string; ru?: string; sv-SE?: string; th?: string; tr?: string; uk?: string; vi?: string; zh-CN?: string; zh-TW?: string; } | null

value

value: string | number


components?

optional components?: MessageComponents

Defined in: discordeno/interactions.ts:55

The components you would like to have sent in this message


content?

optional content?: string

Defined in: discordeno/interactions.ts:43

The message contents (up to 2000 characters)


customId?

optional customId?: string

Defined in: discordeno/interactions.ts:69

The customId you want to use for this modal response.


embeds?

optional embeds?: object[]

Defined in: discordeno/interactions.ts:45

Embedded rich content (up to 6000 characters)

author?

optional author?: object

author.iconUrl?

optional iconUrl?: string

author.name

name: string

author.proxyIconUrl?

optional proxyIconUrl?: string

author.url?

optional url?: string

color?

optional color?: number

description?

optional description?: string

fields?

optional fields?: object[]

optional footer?: object

footer.iconUrl?

optional iconUrl?: string

footer.proxyIconUrl?

optional proxyIconUrl?: string

footer.text

text: string

image?

optional image?: object

image.height?

optional height?: number

image.proxyUrl?

optional proxyUrl?: string

image.url

url: string

image.width?

optional width?: number

provider?

optional provider?: object

provider.name?

optional name?: string

provider.url?

optional url?: string

thumbnail?

optional thumbnail?: object

thumbnail.height?

optional height?: number

thumbnail.proxyUrl?

optional proxyUrl?: string

thumbnail.url

url: string

thumbnail.width?

optional width?: number

timestamp?

optional timestamp?: string

title?

optional title?: string

type?

optional type?: EmbedTypes

url?

optional url?: string

video?

optional video?: object

video.height?

optional height?: number

video.proxyUrl?

optional proxyUrl?: string

video.url?

optional url?: string

video.width?

optional width?: number


files?

optional files?: FileContent[]

Defined in: discordeno/interactions.ts:59

The contents of the files being sent


flags?

optional flags?: number

Defined in: discordeno/interactions.ts:53

Message flags combined as a bit field (only SUPPRESS_EMBEDS, EPHEMERAL, IS_COMPONENTS_V2, IS_VOICE_MESSAGE and SUPPRESS_NOTIFICATIONS can be set)

See

MessageFlags


poll?

optional poll?: CreatePoll

Defined in: discordeno/interactions.ts:61

Details about the poll


title?

optional title?: string

Defined in: discordeno/interactions.ts:71

The title you want to use for this modal response.


tts?

optional tts?: boolean

Defined in: discordeno/interactions.ts:41

True if this is a TTS message