interface APIUnfurledMediaItem

external
export interface APIUnfurledMediaItem

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

optionalexternal
attachment_id? : Snowflake

The id of the uploaded attachment.

optionalexternal
content_type? : string | null

The media type of the content

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

optionalexternal
height? : number | null

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

optionalexternal
loading_state? : UnfurledMediaItemLoadingState

This field is currently not documented by Discord

optionalexternal
placeholder_version? : number | null

Version of the placeholder (if image or video)

optionalexternal
placeholder? : string | null

ThumbHash placeholder (if image or video)

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

optionalexternal
proxy_url? : string

The proxied url of the media item

external
url : string

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

optionalexternal
width? : number | null

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