Table of Contents

Method AddMediaGalleryComponent

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

AddMediaGalleryComponent(params IEnumerable<DiscordMediaGalleryItem>)

Adds a media gallery to this builder.

IDiscordMessageBuilder AddMediaGalleryComponent(params IEnumerable<DiscordMediaGalleryItem> galleryItems)

Parameters

galleryItems IEnumerable<DiscordMediaGalleryItem>

The items to add.

Returns

IDiscordMessageBuilder

The builder to chain calls with.

Exceptions

InvalidOperationException

Thrown if there is insufficient slots to support the component.