Preview environment

class MediaGalleryComponent

export class MediaGalleryComponent extends Component<APIMediaGalleryComponent>

Represents a media gallery component

The API data associated with this component

Inherited from: Component

readonly
id : APIMediaGalleryComponent['id']

The id of this component

Inherited from: Component

readonly
items : MediaGalleryItem[]

The items in this media gallery

readonly
type : APIMediaGalleryComponent['type']

The type of the component

Inherited from: Component

equals() : boolean

Whether or not the given components are equal

Inherited from: Component

Returns the API-compatible JSON for this component