Table of Contents

Class ImageAttachment

Namespace
NetCord
Assembly
NetCord.dll

Represents an Attachment with properties relevant to image/video files.

public class ImageAttachment : Attachment, IEntity, ISpanFormattable, IFormattable, IEquatable<Entity>, IJsonModel<JsonAttachment>
Inheritance
ImageAttachment
Implements
Inherited Members

Constructors

ImageAttachment(JsonAttachment)

Represents an Attachment with properties relevant to image/video files.

public ImageAttachment(JsonAttachment jsonModel)

Parameters

jsonModel JsonAttachment

Properties

Height

The height of the attachment in pixels.

public int Height { get; }

Property Value

int

Placeholder

The attachment's thumbhash placeholder.

public string? Placeholder { get; }

Property Value

string

PlaceholderVersion

The Placeholder's version.

public int PlaceholderVersion { get; }

Property Value

int

Width

The width of the attachment in pixels.

public int Width { get; }

Property Value

int