InteractionCallbackData
Documentation / @discordeno/types / InteractionCallbackData
Interface: InteractionCallbackData
Defined in: discordeno/interactions.ts:38
- https://docs.discord.com/developers/interactions/receiving-and-responding#interaction-response-object-messages
- https://docs.discord.com/developers/interactions/receiving-and-responding#interaction-response-object-autocomplete
- https://docs.discord.com/developers/interactions/receiving-and-responding#interaction-response-object-modal
Properties
allowedMentions?
optionalallowedMentions?:AllowedMentions
Defined in: discordeno/interactions.ts:47
Allowed mentions for the message
attachments?
optionalattachments?:Pick<DiscordAttachment,"id"|"description"|"filename">[]
Defined in: discordeno/interactions.ts:57
Attachment objects with filename and description
choices?
optionalchoices?:object[]
Defined in: discordeno/interactions.ts:65
Autocomplete choices (max of 25 choices)
name
name:
string
nameLocalizations?
optionalnameLocalizations?: {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?
optionalcomponents?:MessageComponents
Defined in: discordeno/interactions.ts:55
The components you would like to have sent in this message
content?
optionalcontent?:string
Defined in: discordeno/interactions.ts:43
The message contents (up to 2000 characters)
customId?
optionalcustomId?:string
Defined in: discordeno/interactions.ts:69
The customId you want to use for this modal response.
embeds?
optionalembeds?:object[]
Defined in: discordeno/interactions.ts:45
Embedded rich content (up to 6000 characters)
author?
optionalauthor?:object
author.iconUrl?
optionaliconUrl?:string
author.name
name:
string
author.proxyIconUrl?
optionalproxyIconUrl?:string
author.url?
optionalurl?:string
color?
optionalcolor?:number
description?
optionaldescription?:string
fields?
optionalfields?:object[]
footer?
optionalfooter?:object
footer.iconUrl?
optionaliconUrl?:string
footer.proxyIconUrl?
optionalproxyIconUrl?:string
footer.text
text:
string
image?
optionalimage?:object
image.height?
optionalheight?:number
image.proxyUrl?
optionalproxyUrl?:string
image.url
url:
string
image.width?
optionalwidth?:number
provider?
optionalprovider?:object
provider.name?
optionalname?:string
provider.url?
optionalurl?:string
thumbnail?
optionalthumbnail?:object
thumbnail.height?
optionalheight?:number
thumbnail.proxyUrl?
optionalproxyUrl?:string
thumbnail.url
url:
string
thumbnail.width?
optionalwidth?:number
timestamp?
optionaltimestamp?:string
title?
optionaltitle?:string
type?
optionaltype?:EmbedTypes
url?
optionalurl?:string
video?
optionalvideo?:object
video.height?
optionalheight?:number
video.proxyUrl?
optionalproxyUrl?:string
video.url?
optionalurl?:string
video.width?
optionalwidth?:number
files?
optionalfiles?:FileContent[]
Defined in: discordeno/interactions.ts:59
The contents of the files being sent
flags?
optionalflags?: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
poll?
optionalpoll?:CreatePoll
Defined in: discordeno/interactions.ts:61
Details about the poll
title?
optionaltitle?:string
Defined in: discordeno/interactions.ts:71
The title you want to use for this modal response.
tts?
optionaltts?:boolean
Defined in: discordeno/interactions.ts:41
True if this is a TTS message