You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

Embed.cs 1.3 kB

12345678910111213141516171819202122232425262728293031323334353637
  1. #pragma warning disable CS1591
  2. using System;
  3. using Newtonsoft.Json;
  4. using Newtonsoft.Json.Converters;
  5. namespace Discord.API
  6. {
  7. internal class Embed
  8. {
  9. [JsonProperty("title")]
  10. public string Title { get; set; }
  11. [JsonProperty("description")]
  12. public string Description { get; set; }
  13. [JsonProperty("url")]
  14. public string Url { get; set; }
  15. [JsonProperty("color")]
  16. public uint? Color { get; set; }
  17. [JsonProperty("type"), JsonConverter(typeof(StringEnumConverter))]
  18. public EmbedType Type { get; set; }
  19. [JsonProperty("timestamp")]
  20. public DateTimeOffset? Timestamp { get; set; }
  21. [JsonProperty("author")]
  22. public Optional<EmbedAuthor> Author { get; set; }
  23. [JsonProperty("footer")]
  24. public Optional<EmbedFooter> Footer { get; set; }
  25. [JsonProperty("video")]
  26. public Optional<EmbedVideo> Video { get; set; }
  27. [JsonProperty("thumbnail")]
  28. public Optional<EmbedThumbnail> Thumbnail { get; set; }
  29. [JsonProperty("image")]
  30. public Optional<EmbedImage> Image { get; set; }
  31. [JsonProperty("provider")]
  32. public Optional<EmbedProvider> Provider { get; set; }
  33. [JsonProperty("fields")]
  34. public Optional<EmbedField[]> Fields { get; set; }
  35. }
  36. }