Skip to content
Interfacediscord-component-embedv1.0.0

MediaProps

Props for Thumbnail and MediaGalleryItem.

interface MediaProps

description

Alt text.

description?: string

spoiler

Hides the media behind a spoiler overlay.

spoiler?: boolean

url

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.

url: string;