interface APIThumbnailComponent

external
export interface APIThumbnailComponent extends APIBaseComponent<ComponentType.Thumbnail>

A Thumbnail is a content component that is a small image only usable as an accessory in a section. The preview comes from an url or attachment through the unfurled media item structure.Thumbnails are only available in messages as an accessory in a section.

See also: https://discord.com/developers/docs/components/reference#thumbnail

optionalexternal
description? : string | null

Alt text for the media

external
media : APIUnfurledMediaItem

A url or attachment

optionalexternal
spoiler? : boolean = false

Whether the thumbnail should be a spoiler (or blurred out)