Skip to content
Interfacediscord-component-embedv1.0.0

APIUnfurledMediaItem

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

interface APIUnfurledMediaItem

attachment_id

The id of the uploaded attachment.

Only present if the media item was uploaded as an attachment.

attachment_id?: Snowflake

height

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

This field is ignored and provided by the API as part of the response.

height?: number | null

placeholder_version

Version of the placeholder (if image or video)

This field is ignored and provided by the API as part of the response.

placeholder_version?: number | null

proxy_url

The proxied url of the media item

This field is ignored and provided by the API as part of the response.

proxy_url?: string

url

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

url: string;

width

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

This field is ignored and provided by the API as part of the response.

width?: number | null