Table of Contents

Class FileComponent

Namespace
Discord
Assembly
Discord.Net.Core.dll

Represents a file component.

public class FileComponent : IMessageComponent
Inheritance
FileComponent
Implements
Inherited Members

Properties

File

Gets the file of this component.

public UnfurledMediaItem File { get; }

Property Value

UnfurledMediaItem

Id

public int? Id { get; }

Property Value

int?

IsSpoiler

Gets whether this file is a spoiler.

public bool? IsSpoiler { get; }

Property Value

bool?

Type

Gets the ComponentType of this Message Component.

public ComponentType Type { get; }

Property Value

ComponentType

Methods

ToBuilder()

public FileComponentBuilder ToBuilder()

Returns

FileComponentBuilder