class FileBuilder
extends
ComponentBuilder<APIFileComponent>declare class FileBuilder extends ComponentBuilder<APIFileComponent>
protectedreadonlyPartial<APIFileComponent> data :
Clears the id of this component, defaulting to a default incremented id.
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.
toJSONvalidationOverride?: boolean) : APIFileComponent (
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.