DiscordFileComponent
Documentation / @discordeno/bot / DiscordFileComponent
Interface: DiscordFileComponent
Defined in: packages/types/dist/types/discord/components.d.ts:250
https://discord.com/developers/docs/components/reference#file-file-structure
Extends
Properties
file
file:
DiscordUnfurledMediaItem
Defined in: packages/types/dist/types/discord/components.d.ts:253
This unfurled media item is unique in that it only supports attachment references using the attachment://<filename> syntax
id?
optional
id:number
Defined in: packages/types/dist/types/discord/components.d.ts:43
32 bit integer used as an optional identifier for component
Inherited from
spoiler?
optional
spoiler:boolean
Defined in: packages/types/dist/types/discord/components.d.ts:255
Whether the media should be a spoiler (or blurred out). Defaults to false
type
type:
File
Defined in: packages/types/dist/types/discord/components.d.ts:251
The type of the component