Class Attachment
- Namespace
- NetCord
- Assembly
- NetCord.dll
public class Attachment : Entity, IEntity, ISpanFormattable, IFormattable, IEquatable<Entity>, IJsonModel<JsonAttachment>
- Inheritance
-
Attachment
- Implements
- Derived
- Inherited Members
Constructors
Attachment(JsonAttachment)
public Attachment(JsonAttachment jsonModel)
Parameters
jsonModel
JsonAttachment
Properties
ContentType
The attachment's media type.
public ContentType? ContentType { get; }
Property Value
Description
Description for the attachment (max 1024 characters).
public string? Description { get; }
Property Value
Ephemeral
Whether this attachment is ephemeral.
public bool Ephemeral { get; }
Property Value
FileName
Name of the attachment.
public string FileName { get; }
Property Value
Flags
public AttachmentFlags Flags { get; }
Property Value
Id
The unique identifier for this object.
public override ulong Id { get; }
Property Value
ProxyUrl
A proxied url of file.
public string ProxyUrl { get; }
Property Value
Size
Size of file in bytes.
public int Size { get; }
Property Value
Title
Title of the attachment.
public string? Title { get; }
Property Value
Url
Source url of file.
public string Url { get; }
Property Value
Methods
CreateFromJson(JsonAttachment)
public static Attachment CreateFromJson(JsonAttachment jsonModel)
Parameters
jsonModel
JsonAttachment
Returns
GetExpirationInfo()
public AttachmentExpirationInfo GetExpirationInfo()