Skip to main content
Version: Next

APIUnfurledMediaItem

Index

Properties

optionalattachment_id

attachment_id?: string

The id of the uploaded attachment.

@remarks

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

optionalcontent_type

content_type?: null | string

The media type of the content

@remarks

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

@see

optionalflags

flags?: UnfurledMediaItemFlags

Unfurled media item flags combined as a bitfield

@remarks

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

@see

optionalheight

height?: null | number

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

@remarks

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

optionalloading_state

@unstable

This field is currently not documented by Discord

optionalplaceholder

placeholder?: null | string

ThumbHash placeholder (if image or video)

@remarks

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

@see

optionalplaceholder_version

placeholder_version?: null | number

Version of the placeholder (if image or video)

@remarks

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

optionalproxy_url

proxy_url?: string

The proxied url of the media item

@remarks

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

url

url: string

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

optionalwidth

width?: null | number

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

@remarks

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