Table of Contents

Method WithThumbnailComponent

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

WithThumbnailComponent(string, string?, bool?)

Adds a thumbnail component to the section as accessory.

public DiscordSectionComponent WithThumbnailComponent(string url, string? description = null, bool? spoiler = null)

Parameters

url string

The thumbnail url.

description string

The description of the thumbnail.

spoiler bool?

Whether this thumbnail should be marked as spoiler.

Returns

DiscordSectionComponent

The current DiscordSectionComponent.