APIUnfurledMediaItem
See also:https://discord.com/developers/docs/components/reference#unfurled-media-item-structure
interface APIUnfurledMediaItem- optional
attachment_id
The id of the uploaded attachment.
Only present if the media item was uploaded as an attachment.
attachment_id: Snowflake;- optional
content_type
The media type of the content
This field is ignored and provided by the API as part of the response.
- optional
flags
Unfurled media item flags combined as a bitfield
This field is ignored and provided by the API as part of the response.
- optional
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.
- optional
loading_state
This field is currently not documented by Discord
loading_state: UnfurledMediaItemLoadingState;- optional
placeholder_version
Version of the placeholder (if image or video)
This field is ignored and provided by the API as part of the response.
- optional
placeholder
ThumbHash placeholder (if image or video)
This field is ignored and provided by the API as part of the response.
See also:https://evanw.github.io/thumbhash/
- optional
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;- optional
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.