52 lines
1.1 KiB
C#
52 lines
1.1 KiB
C#
using Newtonsoft.Json;
|
|
|
|
namespace Maki.Structures.Messages
|
|
{
|
|
/// <summary>
|
|
/// Discord API Attachment structure
|
|
/// </summary>
|
|
internal struct Attachment
|
|
{
|
|
/// <summary>
|
|
/// attachment id
|
|
/// </summary>
|
|
[JsonProperty("id")]
|
|
public ulong Id;
|
|
|
|
/// <summary>
|
|
/// name of file attached
|
|
/// </summary>
|
|
[JsonProperty("filename")]
|
|
public string Filename;
|
|
|
|
/// <summary>
|
|
/// size of file in bytes
|
|
/// </summary>
|
|
[JsonProperty("size")]
|
|
public int Size;
|
|
|
|
/// <summary>
|
|
/// source url of file
|
|
/// </summary>
|
|
[JsonProperty("url")]
|
|
public string Url;
|
|
|
|
/// <summary>
|
|
/// a proxied url of file
|
|
/// </summary>
|
|
[JsonProperty("proxy_url")]
|
|
public string ProxyUrl;
|
|
|
|
/// <summary>
|
|
/// height of file (if image)
|
|
/// </summary>
|
|
[JsonProperty("height")]
|
|
public int? Height;
|
|
|
|
/// <summary>
|
|
/// width of file (if image)
|
|
/// </summary>
|
|
[JsonProperty("width")]
|
|
public int? Width;
|
|
}
|
|
}
|