# MediaProps

`interface` in `discord-component-embed` · v1.0.0

<https://seedcord.org/docs/packages/discord-component-embed/1.0.0/interfaces/media-props>

Props for [`Thumbnail`](/docs/packages/discord-component-embed/1.0.0/functions/thumbnail) and [`MediaGalleryItem`](/docs/packages/discord-component-embed/1.0.0/functions/media-gallery-item).

```ts
interface MediaProps
```

## Properties

### description

```ts
description?: string
```

Alt text.

### spoiler

```ts
spoiler?: boolean
```

Hides the media behind a spoiler overlay.

### url

```ts
url: string;
```

An `http` or `https` URL that Discord fetches when it builds the preview. A thumbnail takes a PNG, GIF, JPEG,
WebP, or AVIF image. A gallery item also takes MP4, MOV, or WebM video.
