class ThumbnailBuilder
extends
ComponentBuilder<APIThumbnailComponent>declare class ThumbnailBuilder extends ComponentBuilder<APIThumbnailComponent>
Constructors
data?: Partial<APIThumbnailComponent>)
constructor(data?: Partial<APIThumbnailComponent>
Creates a new thumbnail from API data.
protectedreadonlyPartial<APIThumbnailComponent> data :
Clears the id of this component, defaulting to a default incremented id.
Inherited from: ComponentBuilder
setDescriptiondescription: string) : this (
description: string
Sets the description of this thumbnail.
setSpoilerspoiler?: boolean) : this (
spoiler?: boolean
Sets the spoiler status of this thumbnail.
setURLurl: string) : this (
url: string
Sets the media URL of this thumbnail.
toJSONvalidationOverride?: boolean) : APIThumbnailComponent (
validationOverride?: boolean
Serializes this builder to API-compatible JSON data.Note that by disabling validation, there is no guarantee that the resulting object will be valid.