Preview environment

class ThumbnailComponent

export class ThumbnailComponent extends Component<APIThumbnailComponent>

Represents a thumbnail component

The API data associated with this component

Inherited from: Component

readonly
description : string | null

The description of this thumbnail

readonly
id : APIThumbnailComponent['id']

The id of this component

Inherited from: Component

readonly
media : UnfurledMediaItem

The media associated with this thumbnail

readonly
spoiler : boolean

Whether this thumbnail is spoilered

readonly
type : APIThumbnailComponent['type']

The type of the component

Inherited from: Component

equals(
other: this | APIThumbnailComponent
) : boolean

Whether or not the given components are equal

Inherited from: Component

Returns the API-compatible JSON for this component