$addMediaGalleryItem

Components v2

Adds a media to the gallery.

Syntax

$addMediaGalleryItem[Media URL;Description;Spoiler?;Gallery name]

Limit

You can add up to 10 media items to a gallery.

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]

What is this?