$addMediaGalleryItem
Components v2
Adds a media to the gallery.
Syntax
$addMediaGalleryItem[Media URL;Description;Spoiler?;Gallery name]
Parameters
Media URL(Type: URL || Flag: Required): URL of the media (image or video).Description(Type: String || Flag: Emptiable): Alt text for the media item.Spoiler?(Type: Bool || Flag: Emptiable): Will the media have a spoiler effect?Gallery name(Type: String || Flag: Required): Name of the media gallery to add item to.
Example
$nomention
$addMediaGallery[pictures]
$addMediaGalleryItem[$authorAvatar;;;pictures]
How $addMediaGallery[] and $authorAvatar works?