class ThumbnailBuilder
extends
ComponentBuilder<APIThumbnailComponent>declare class ThumbnailBuilder extends ComponentBuilder<APIThumbnailComponent>Constructors
constructor(data?: Partial<APIThumbnailComponent>)
data?: Partial<APIThumbnailComponent>
Creates a new thumbnail from API data.
readonlydata : Partial<APIThumbnailComponent>
The API data associated with this component.
Inherited from: ComponentBuilder
Clears the id of this component, defaulting to a default incremented id.
Inherited from: ComponentBuilder
setDescription(description: string) : this
description: string
Sets the description of this thumbnail.
setId(id: number) : this
id: number
Sets the id (not the custom id) for this component.
Inherited from: ComponentBuilder
setSpoiler(spoiler?: boolean) : this
spoiler?: boolean
Sets the spoiler status of this thumbnail.
setURL(url: string) : this
url: string
Sets the media URL of this thumbnail.
toJSON() : APIThumbnailComponent
Serializes this builder to API-compatible JSON data.