Skip to main content

DiscordUnfurledMediaItem

Documentation


Documentation / @discordeno/types / DiscordUnfurledMediaItem

Interface: DiscordUnfurledMediaItem

Defined in: discord/components.ts:881

https://docs.discord.com/developers/components/reference#unfurled-media-item-structure

Properties

attachment_id?

optional attachment_id?: string | null

Defined in: discord/components.ts:893

The id of the uploaded attachment. Only present if the media was uploaded as an attachment. This field is ignored and provided by the API as part of the response


content_type?

optional content_type?: string

Defined in: discord/components.ts:891

The media type of the content. This field is ignored and provided by the API as part of the response


height?

optional height?: number | null

Defined in: discord/components.ts:887

The height of the media item. This field is ignored and provided by the API as part of the response


proxy_url?

optional proxy_url?: string

Defined in: discord/components.ts:885

The proxied url of the media item. This field is ignored and provided by the API as part of the response


url

url: string

Defined in: discord/components.ts:883

Supports arbitrary urls and attachment://<filename> references


width?

optional width?: number | null

Defined in: discord/components.ts:889

The width of the media item. This field is ignored and provided by the API as part of the response