Skip to content

APIUnfurledMediaItem

https://docs.discord.com/developers/components/reference#unfurled-media-item-structure Only `url` is set by apps; every other field is filled in by Discord on received components.

Signature

export interface APIUnfurledMediaItem extends Identify<MakeRequired<Partial<Pick<APIAttachment, 'url' | 'proxy_url' | 'height' | 'width' | 'content_type'>>, 'url'>>

Properties

placeholder?: string;

Thumbhash placeholder for images and videos

attachment_id?: Snowflake;

ID of the uploaded attachment, present only when the media was uploaded as an attachment