class FileBuilder
extends
ComponentBuilder<APIFileComponent>export declare class FileBuilder extends ComponentBuilder<APIFileComponent>
readonlyPartial<APIFileComponent> data :
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
setIdid: number) : this (
id: number
Sets the id (not the custom id) for this component.
Inherited from: ComponentBuilder
setSpoilerspoiler?: boolean) : this (
spoiler?: boolean
Sets the spoiler status of this file.
setURLurl: string) : this (
url: string
Sets the media URL of this file.
toJSONAPIFileComponent () :
Serializes this builder to API-compatible JSON data.