Table of Contents

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 string

The URL of the media item. This must be a direct link to media, or an attachment:// reference.

description string

The description (alt text) of the media item.

isSpoilered bool?

Whether the attachment is spoilered.