# APIUnfurledMediaItem

`interface` in `discord-component-embed` · v0.4.1

<https://docs.seedcord.org/packages/discord-component-embed/0.4.1/interfaces/apiunfurled-media-item>

```ts
interface APIUnfurledMediaItem
```

## Properties

### attachment_id

```ts
attachment_id: Snowflake;
```

The id of the uploaded attachment.

Only present if the media item was uploaded as an attachment.

### content_type

```ts
content_type: string | null;
```

The media type of the content

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

### flags

```ts
flags: UnfurledMediaItemFlags;
```

Unfurled media item flags combined as a bitfield

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

### height

```ts
height: number | null;
```

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

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

### loading_state

```ts
loading_state: UnfurledMediaItemLoadingState;
```

 This field is currently not documented by Discord

### placeholder_version

```ts
placeholder_version: number | null;
```

Version of the placeholder (if image or video)

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

### placeholder

```ts
placeholder: string | null;
```

ThumbHash placeholder (if image or video)

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

### proxy_url

```ts
proxy_url: string;
```

The proxied url of the media item

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

### url

```ts
url: string;
```

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

### width

```ts
width: number | null;
```

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

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

## See also

- [https://discord.com/developers/docs/components/reference#unfurled-media-item-structure](https://discord.com/developers/docs/components/reference#unfurled-media-item-structure)
