interface APIUnfurledMediaItem

export interface APIUnfurledMediaItem

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

optional
attachment_id? : Snowflake

The id of the uploaded attachment.

optional
content_type? : string | null

The media type of the content

See also: https://en.wikipedia.org/wiki/Media_type

optional
height? : number | null

The height of the media item (if image or video)

unstableoptional
loading_state? : UnfurledMediaItemLoadingState

optional
placeholder_version? : number | null

Version of the placeholder (if image or video)

optional
placeholder? : string | null

ThumbHash placeholder (if image or video)

See also: https://evanw.github.io/thumbhash/

optional
proxy_url? : string

The proxied url of the media item

url : string

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

optional
width? : number | null

The width of the media item (if image or video)