Constructor DiscordMediaGalleryItem
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
DiscordMediaGalleryItem(string, string?, bool?)
Constructs a new media gallery item.
public DiscordMediaGalleryItem(string url, string? description = null, bool? isSpoilered = null)
Parameters
url
stringThe URL of the media item. This must be a direct link to media, or an attachment:// reference.
description
stringThe description (alt text) of the media item.
isSpoilered
bool?Whether the attachment is spoilered.