Class Attachment
Fluxer entity with client attached.
public class Attachment : Entity, IAttachment, ISnowflake
- Inheritance
-
objectAttachment
- Implements
Properties
ContentHash
The hash of the attachment content.
public string? ContentHash { get; set; }
Property Value
ContentType
The MIME type of the attachment.
public string ContentType { get; set; }
Property Value
CreatedAt
Object created at UTC date.
public DateTimeOffset CreatedAt { get; }
Property Value
Description
The description of the attachment.
public string? Description { get; set; }
Property Value
Duration
The duration of the media in seconds.
public ulong? Duration { get; set; }
Property Value
ExpiresAt
The ISO 8601 timestamp when the attachment URL expires.
public DateTimeOffset? ExpiresAt { get; set; }
Property Value
Filename
The name of the attached file.
public string Filename { get; set; }
Property Value
Flags
Attachment flags.
public AttachmentFlag Flags { get; set; }
Property Value
Height
The height of the attachment in pixels (for images/videos).
public int? Height { get; set; }
Property Value
- int?
Id
Unique identifier (snowflake) for the object.
public ulong Id { get; set; }
Property Value
IsExpired
Whether the attachment URL has expired.
public bool? IsExpired { get; set; }
Property Value
- bool?
IsNsfw
Whether the attachment is flagged as NSFW.
public bool? IsNsfw { get; set; }
Property Value
- bool?
Placeholder
The base64 encoded placeholder image for lazy loading.
public string? Placeholder { get; set; }
Property Value
ProxyUrl
The proxied URL of the attachment.
public string? ProxyUrl { get; set; }
Property Value
Size
The size of the attachment in bytes.
public ulong Size { get; set; }
Property Value
Title
The title of the attachment.
public string? Title { get; set; }
Property Value
Url
The URL of the attachment.
public string? Url { get; set; }
Property Value
Waveform
The base64 encoded audio waveform data.
public string? Waveform { get; set; }
Property Value
Width
The width of the attachment in pixels (for images/videos).
public int? Width { get; set; }
Property Value
- int?
Methods
Create(FluxerBaseClient, AttachmentJson, ulong)
Create a Attachment object from json.
public static Attachment Create(FluxerBaseClient client, AttachmentJson json, ulong channelId)
Parameters
clientFluxerBaseClientjsonAttachmentJsonchannelIdulong
Returns
GetAttachmentUrl()
Get the attachment's url.
public string? GetAttachmentUrl()