class MediaGalleryItemBuilder
implements
JSONEncodable<APIMediaGalleryItem>export declare class MediaGalleryItemBuilder implements JSONEncodable<APIMediaGalleryItem>Constructors
constructor(data?: Partial<APIMediaGalleryItem>)
data?: Partial<APIMediaGalleryItem>
Creates a new media gallery item.
Examples:Creating a media gallery item from an API data object:Creating a media gallery item using setters and API data:
const item = new MediaGalleryItemBuilder({
	description: "Some text here",
	media: {
		url: 'https://cdn.discordapp.com/embed/avatars/2.png',
	},
});const item = new MediaGalleryItemBuilder({
	media: {
		url: 'https://cdn.discordapp.com/embed/avatars/5.png',
	},
})
	.setDescription("alt text"); setDescription(description: string) : this
description: string
Sets the description of this thumbnail.
 setSpoiler(spoiler?: boolean) : this
spoiler?: boolean
Sets the spoiler status of this thumbnail.
 setURL(url: string) : this
url: string
Sets the source URL of this media gallery item.
 toJSON(validationOverride?: boolean) : APIMediaGalleryItem
validationOverride?: boolean
Transforms this object to its JSON format