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
jsonModelJsonAttachment
Properties
Height
The height of the attachment in pixels.
public int Height { get; }
Property Value
Placeholder
The attachment's thumbhash placeholder.
public string? Placeholder { get; }
Property Value
PlaceholderVersion
The Placeholder's version.
public int PlaceholderVersion { get; }
Property Value
Width
The width of the attachment in pixels.
public int Width { get; }