Class DiscordAttachmentData
Represents a discord Attachment Structure API model. Docs: https://discord.com/developers/docs/resources/channel#attachment-object-attachment-structure
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Color_Chan.Discord.Core.Common.API.DataModels
Assembly: Color-Chan.Discord.Core.dll
Syntax
public class DiscordAttachmentData : IEquatable<DiscordAttachmentData>
Properties
| Improve this Doc View SourceFileName
name of file attached.
Declaration
[JsonPropertyName("filename")]
public string FileName { get; set; }
Property Value
Type | Description |
---|---|
String |
Height
Height of file (if image).
Declaration
[JsonPropertyName("height")]
public int? Height { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Int32> |
Id
Attachment id.
Declaration
[JsonPropertyName("id")]
public ulong Id { get; set; }
Property Value
Type | Description |
---|---|
System.UInt64 |
ProxyUrl
A proxied url of file.
Declaration
[JsonPropertyName("proxy_url")]
public string ProxyUrl { get; set; }
Property Value
Type | Description |
---|---|
String |
Size
Size of file in bytes.
Declaration
[JsonPropertyName("size")]
public int Size { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Url
Source url of file.
Declaration
[JsonPropertyName("url")]
public string Url { get; set; }
Property Value
Type | Description |
---|---|
String |
Width
Width of file (if image).
Declaration
[JsonPropertyName("width")]
public int? Width { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Int32> |