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
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
Methods
ToBuilder()
Converts a FileComponent to a FileComponentBuilder.
public FileComponentBuilder ToBuilder()