Skip to main content

UnfurledMediaItem

Documentation


Documentation / @discordeno/bot / UnfurledMediaItem

Interface: UnfurledMediaItem

Defined in: transformers/types.ts:644

Properties

attachmentId?

optional attachmentId: bigint

Defined in: transformers/types.ts:656

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


contentType?

optional contentType: string

Defined in: transformers/types.ts:654

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


height?

optional height: number | null

Defined in: transformers/types.ts:650

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


proxyUrl?

optional proxyUrl: string

Defined in: transformers/types.ts:648

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:646

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


width?

optional width: number | null

Defined in: transformers/types.ts:652

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