Creates a new media gallery from API data.
Optional
data: Partial<APIMediaGalleryComponent>The API data to create this media gallery with
Readonly
dataThe API data associated with this component.
Readonly
itemsThe components within this container.
Adds items to this media gallery.
The items to add
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
Removes, replaces, or inserts media gallery items for this media gallery.
The index to start removing, replacing or inserting items
The amount of items to remove
The items to insert
Serializes this builder to API-compatible JSON data.
A builder that creates API-compatible JSON data for a container.