| @@ -13,9 +13,17 @@ namespace Discord.API | |||||
| public string Description { get; set; } | public string Description { get; set; } | ||||
| [JsonProperty("url")] | [JsonProperty("url")] | ||||
| public string Url { get; set; } | public string Url { get; set; } | ||||
| [JsonProperty("color")] | |||||
| public uint Color { get; set; } | |||||
| [JsonProperty("author")] | |||||
| public Optional<EmbedAuthor> Author { get; set; } | |||||
| [JsonProperty("footer")] | |||||
| public Optional<EmbedFooter> Footer { get; set; } | |||||
| [JsonProperty("thumbnail")] | [JsonProperty("thumbnail")] | ||||
| public Optional<EmbedThumbnail> Thumbnail { get; set; } | public Optional<EmbedThumbnail> Thumbnail { get; set; } | ||||
| [JsonProperty("provider")] | [JsonProperty("provider")] | ||||
| public Optional<EmbedProvider> Provider { get; set; } | public Optional<EmbedProvider> Provider { get; set; } | ||||
| [JsonProperty("fields")] | |||||
| public Optional<EmbedField[]> Fields { get; set; } | |||||
| } | } | ||||
| } | } | ||||
| @@ -0,0 +1,16 @@ | |||||
| using Newtonsoft.Json; | |||||
| namespace Discord.API | |||||
| { | |||||
| public class EmbedAuthor | |||||
| { | |||||
| [JsonProperty("name")] | |||||
| public string Name { get; set; } | |||||
| [JsonProperty("url")] | |||||
| public string Url { get; set; } | |||||
| [JsonProperty("icon_url")] | |||||
| public string IconUrl { get; set; } | |||||
| [JsonProperty("proxy_icon_url")] | |||||
| public string ProxyIconUrl { get; set; } | |||||
| } | |||||
| } | |||||
| @@ -0,0 +1,14 @@ | |||||
| using Newtonsoft.Json; | |||||
| namespace Discord.API | |||||
| { | |||||
| public class EmbedField | |||||
| { | |||||
| [JsonProperty("name")] | |||||
| public string Name { get; set; } | |||||
| [JsonProperty("value")] | |||||
| public string Value { get; set; } | |||||
| [JsonProperty("inline")] | |||||
| public bool Inline { get; set; } | |||||
| } | |||||
| } | |||||
| @@ -0,0 +1,14 @@ | |||||
| using Newtonsoft.Json; | |||||
| namespace Discord.API | |||||
| { | |||||
| public class EmbedFooter | |||||
| { | |||||
| [JsonProperty("text")] | |||||
| public string Text { get; set; } | |||||
| [JsonProperty("icon_url")] | |||||
| public string IconUrl { get; set; } | |||||
| [JsonProperty("proxy_icon_url")] | |||||
| public string ProxyIconUrl { get; set; } | |||||
| } | |||||
| } | |||||