FileComponent
Documentation / @discordeno/types / FileComponent
Interface: FileComponent
Defined in: discordeno/components.ts:385
https://docs.discord.com/developers/components/reference#file
Extends
Properties
file
file:
DiscordUnfurledMediaItem
Defined in: discordeno/components.ts:389
This unfurled media item is unique in that it only supports attachment references using the attachment://<filename> syntax
id?
optionalid?:number
Defined in: discordeno/components.ts:42
32 bit integer used as an optional identifier for component
Inherited from
name
name:
string
Defined in: discordeno/components.ts:393
The name of the file. This field is ignored and provided by the API as part of the response
size
size:
number
Defined in: discordeno/components.ts:395
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: discordeno/components.ts:391
Whether the media should be a spoiler (or blurred out). Defaults to false
type
type:
File
Defined in: discordeno/components.ts:386
The type of the component