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
stringThe thumbnail url.
description
stringThe description of the thumbnail.
spoiler
bool?Whether this thumbnail should be marked as spoiler.
Returns
- DiscordSectionComponent
The current DiscordSectionComponent.