Creates a new file from API data.
Optional
data: Partial<APIFileComponent>The API data to create this file with
Clears the id of this component, defaulting to a default incremented id.
Sets the id (not the custom id) for this component.
The id for this component
Sets the spoiler status of this file.
Optional
spoiler: booleanThe spoiler status to use
Sets the media URL of this file.
The URL to use
Serializes this builder to API-compatible JSON data.
The base component builder that contains common symbols for all sorts of components.