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
Gets the id for the component.
public int? Id { get; }
Property Value
- int?
IsSpoiler
Gets whether this file is a spoiler.
public bool? IsSpoiler { get; }
Property Value
- bool?
Name
Gets the name of this file.
public string Name { get; }
Property Value
Remarks
This property is only available when the component is received from Discord. It will be null when creating a new component.
Size
Gets the size of this file in bytes.
public ulong? Size { get; }
Property Value
Remarks
This property is only available when the component is received from Discord. It will be null when creating a new component.
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()