Revert change of all Url types on IEmbed to string (#724)
This commit is contained in:
committed by
RogueException
parent
1ce1c019b3
commit
7837c4862c
@@ -12,7 +12,7 @@ namespace Discord.API
|
||||
[JsonProperty("description")]
|
||||
public string Description { get; set; }
|
||||
[JsonProperty("url")]
|
||||
public Uri Url { get; set; }
|
||||
public string Url { get; set; }
|
||||
[JsonProperty("color")]
|
||||
public uint? Color { get; set; }
|
||||
[JsonProperty("type"), JsonConverter(typeof(StringEnumConverter))]
|
||||
|
||||
@@ -8,10 +8,10 @@ namespace Discord.API
|
||||
[JsonProperty("name")]
|
||||
public string Name { get; set; }
|
||||
[JsonProperty("url")]
|
||||
public Uri Url { get; set; }
|
||||
public string Url { get; set; }
|
||||
[JsonProperty("icon_url")]
|
||||
public Uri IconUrl { get; set; }
|
||||
public string IconUrl { get; set; }
|
||||
[JsonProperty("proxy_icon_url")]
|
||||
public Uri ProxyIconUrl { get; set; }
|
||||
public string ProxyIconUrl { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,8 +8,8 @@ namespace Discord.API
|
||||
[JsonProperty("text")]
|
||||
public string Text { get; set; }
|
||||
[JsonProperty("icon_url")]
|
||||
public Uri IconUrl { get; set; }
|
||||
public string IconUrl { get; set; }
|
||||
[JsonProperty("proxy_icon_url")]
|
||||
public Uri ProxyIconUrl { get; set; }
|
||||
public string ProxyIconUrl { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,9 +7,9 @@ namespace Discord.API
|
||||
internal class EmbedImage
|
||||
{
|
||||
[JsonProperty("url")]
|
||||
public Uri Url { get; set; }
|
||||
public string Url { get; set; }
|
||||
[JsonProperty("proxy_url")]
|
||||
public Uri ProxyUrl { get; set; }
|
||||
public string ProxyUrl { get; set; }
|
||||
[JsonProperty("height")]
|
||||
public Optional<int> Height { get; set; }
|
||||
[JsonProperty("width")]
|
||||
|
||||
@@ -9,6 +9,6 @@ namespace Discord.API
|
||||
[JsonProperty("name")]
|
||||
public string Name { get; set; }
|
||||
[JsonProperty("url")]
|
||||
public Uri Url { get; set; }
|
||||
public string Url { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,9 +7,9 @@ namespace Discord.API
|
||||
internal class EmbedThumbnail
|
||||
{
|
||||
[JsonProperty("url")]
|
||||
public Uri Url { get; set; }
|
||||
public string Url { get; set; }
|
||||
[JsonProperty("proxy_url")]
|
||||
public Uri ProxyUrl { get; set; }
|
||||
public string ProxyUrl { get; set; }
|
||||
[JsonProperty("height")]
|
||||
public Optional<int> Height { get; set; }
|
||||
[JsonProperty("width")]
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace Discord.API
|
||||
internal class EmbedVideo
|
||||
{
|
||||
[JsonProperty("url")]
|
||||
public Uri Url { get; set; }
|
||||
public string Url { get; set; }
|
||||
[JsonProperty("height")]
|
||||
public Optional<int> Height { get; set; }
|
||||
[JsonProperty("width")]
|
||||
|
||||
Reference in New Issue
Block a user