Skip to main content

UnfurledMediaItem

Documentation


Documentation / @discordeno/bot / UnfurledMediaItem

Interface: UnfurledMediaItem

Defined in: bot/src/transformers/types.ts:579

Properties

attachmentId?

optional attachmentId: bigint

Defined in: bot/src/transformers/types.ts:591

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: bot/src/transformers/types.ts:589

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


height?

optional height: null | number

Defined in: bot/src/transformers/types.ts:585

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: bot/src/transformers/types.ts:583

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: bot/src/transformers/types.ts:581

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


width?

optional width: null | number

Defined in: bot/src/transformers/types.ts:587

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