Skip to main content

InteractionCallbackData

@discordeno/bot


Documentation / @discordeno/bot / InteractionCallbackData

Interface: InteractionCallbackData

Defined in: packages/types/dist/types/discordeno.d.ts:420

https://discord.com/developers/docs/interactions/slash-commands#interaction-response-interactionapplicationcommandcallbackdata

Properties

allowedMentions?

optional allowedMentions: AllowedMentions

Defined in: packages/types/dist/types/discordeno.d.ts:428

Allowed mentions for the message


choices?

optional choices: object[]

Defined in: packages/types/dist/types/discordeno.d.ts:440

Autocomplete choices (max of 25 choices)

name

name: string

nameLocalizations?

optional nameLocalizations: null | { 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; }

value

value: string | number


components?

optional components: MessageComponents

Defined in: packages/types/dist/types/discordeno.d.ts:436

The components you would like to have sent in this message


content?

optional content: string

Defined in: packages/types/dist/types/discordeno.d.ts:422

The message contents (up to 2000 characters)


customId?

optional customId: string

Defined in: packages/types/dist/types/discordeno.d.ts:432

The customId you want to use for this modal response.


embeds?

optional embeds: object[]

Defined in: packages/types/dist/types/discordeno.d.ts:426

Embedded rich content (up to 6000 characters)

author?

optional author: object

author.iconUrl?

optional author.iconUrl: string

author.name

author.name: string

author.proxyIconUrl?

optional author.proxyIconUrl: string

author.url?

optional author.url: string

color?

optional color: number

description?

optional description: string

fields?

optional fields: object[]

optional footer: object

footer.iconUrl?

optional footer.iconUrl: string

footer.proxyIconUrl?

optional footer.proxyIconUrl: string

footer.text

footer.text: string

image?

optional image: object

image.height?

optional image.height: number

image.proxyUrl?

optional image.proxyUrl: string

image.url

image.url: string

image.width?

optional image.width: number

provider?

optional provider: object

provider.name?

optional provider.name: string

provider.url?

optional provider.url: string

thumbnail?

optional thumbnail: object

thumbnail.height?

optional thumbnail.height: number

thumbnail.proxyUrl?

optional thumbnail.proxyUrl: string

thumbnail.url

thumbnail.url: string

thumbnail.width?

optional thumbnail.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 video.height: number

video.proxyUrl?

optional video.proxyUrl: string

video.url?

optional video.url: string

video.width?

optional video.width: number


files?

optional files: FileContent[]

Defined in: packages/types/dist/types/discordeno.d.ts:430

The contents of the files being sent


flags?

optional flags: number

Defined in: packages/types/dist/types/discordeno.d.ts:438

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


poll?

optional poll: CreatePoll

Defined in: packages/types/dist/types/discordeno.d.ts:442

Details about the poll


title?

optional title: string

Defined in: packages/types/dist/types/discordeno.d.ts:434

The title you want to use for this modal response.


tts?

optional tts: boolean

Defined in: packages/types/dist/types/discordeno.d.ts:424

True if this is a TTS message