Table of Contents

Constructor DiscordFileDisplayComponent

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

DiscordFileDisplayComponent(DiscordFileDisplayComponent)

Constructs a new file display component based on another file display component.

public DiscordFileDisplayComponent(DiscordFileDisplayComponent other)

Parameters

other DiscordFileDisplayComponent

The file display component to copy.

DiscordFileDisplayComponent(string, bool?)

Constructs a new file display component field with the specified options.

public DiscordFileDisplayComponent(string url, bool? spoiler)

Parameters

url string

The file url. Only supports attachments (attachment://).

spoiler bool?

Whether this file should be marked as spoiler.