Interface IAttachment
public interface IAttachment : ISnowflake
- Inherited Members
Properties
ContentHash
The hash of the attachment content.
string? ContentHash { get; }
Property Value
ContentType
The MIME type of the attachment.
string ContentType { get; }
Property Value
Description
The description of the attachment.
string? Description { get; }
Property Value
Duration
The duration of the media in seconds.
ulong? Duration { get; }
Property Value
ExpiresAt
The ISO 8601 timestamp when the attachment URL expires.
DateTimeOffset? ExpiresAt { get; }
Property Value
Filename
The name of the attached file.
string Filename { get; }
Property Value
Flags
Attachment flags.
AttachmentFlag Flags { get; }
Property Value
Height
The height of the attachment in pixels (for images/videos).
int? Height { get; }
Property Value
- int?
IsExpired
Whether the attachment URL has expired.
bool? IsExpired { get; }
Property Value
- bool?
IsNsfw
Whether the attachment is flagged as NSFW.
bool? IsNsfw { get; }
Property Value
- bool?
Placeholder
The base64 encoded placeholder image for lazy loading.
string? Placeholder { get; }
Property Value
ProxyUrl
The proxied URL of the attachment.
string? ProxyUrl { get; }
Property Value
Size
The size of the attachment in bytes.
ulong Size { get; }
Property Value
Title
The title of the attachment.
string? Title { get; }
Property Value
Url
The URL of the attachment.
string? Url { get; }
Property Value
Waveform
The base64 encoded audio waveform data.
string? Waveform { get; }
Property Value
Width
The width of the attachment in pixels (for images/videos).
int? Width { get; }
Property Value
- int?