DiscordFileComponent
Documentation / @discordeno/types / DiscordFileComponent
Interface: DiscordFileComponent
Defined in: discord/components.ts:645
https://docs.discord.com/developers/components/reference#file-file-structure
Extends
Properties
file
file:
DiscordUnfurledMediaItem
Defined in: discord/components.ts:649
This unfurled media item is unique in that it only supports attachment references using the attachment://<filename> syntax
id?
optionalid?:number
Defined in: discord/components.ts:100
32 bit integer used as an optional identifier for component
Inherited from
name
name:
string
Defined in: discord/components.ts:653
The name of the file. This field is ignored and provided by the API as part of the response
size
size:
number
Defined in: discord/components.ts:655
The size of the file in bytes. This field is ignored and provided by the API as part of the response
spoiler?
optionalspoiler?:boolean
Defined in: discord/components.ts:651
Whether the media should be a spoiler (or blurred out). Defaults to false
type
type:
File
Defined in: discord/components.ts:646
The type of the component