Skip to main content

UnfurledMediaItem

Documentation


Documentation / @discordeno/bot / UnfurledMediaItem

Interface: UnfurledMediaItem

Defined in: transformers/types.ts:754

Properties​

attachmentId?​

optional attachmentId?: bigint

Defined in: transformers/types.ts:781

The id of the uploaded attachment. Only present if the media was uploaded as an attachment. This field is ignored and provided by the API as part of the response


contentScanMetadata?​

optional contentScanMetadata?: DiscordContentScanMetadata

Defined in: transformers/types.ts:779

Results of Discord's content scanning, if the media item has been scanned


contentType?​

optional contentType?: string

Defined in: transformers/types.ts:768

The media type of the content. This field is ignored and provided by the API as part of the response


flags?​

optional flags?: ToggleBitfield

Defined in: transformers/types.ts:777

Unfurled media item flags combined as a bitfield

Remarks​

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

See​

DiscordUnfurledMediaItemFlags


height?​

optional height?: number | null

Defined in: transformers/types.ts:760

The height of the media item. This field is ignored and provided by the API as part of the response


placeholder?​

optional placeholder?: string

Defined in: transformers/types.ts:764

Thumbhash placeholder if image or video. This field is ignored and provided by the API as part of the response


placeholderVersion?​

optional placeholderVersion?: number

Defined in: transformers/types.ts:766

Version of the placeholder (if image or video). This field is ignored and provided by the API as part of the response


proxyUrl?​

optional proxyUrl?: string

Defined in: transformers/types.ts:758

The proxied url of the media item. This field is ignored and provided by the API as part of the response


url​

url: string

Defined in: transformers/types.ts:756

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


width?​

optional width?: number | null

Defined in: transformers/types.ts:762

The width of the media item. This field is ignored and provided by the API as part of the response