Revert change of all Url types on IEmbed to string (#724)
This commit is contained in:
committed by
RogueException
parent
1ce1c019b3
commit
7837c4862c
@@ -11,7 +11,7 @@ namespace Discord
|
||||
public EmbedType Type { get; }
|
||||
|
||||
public string Description { get; internal set; }
|
||||
public Uri Url { get; internal set; }
|
||||
public string Url { get; internal set; }
|
||||
public string Title { get; internal set; }
|
||||
public DateTimeOffset? Timestamp { get; internal set; }
|
||||
public Color? Color { get; internal set; }
|
||||
@@ -31,7 +31,7 @@ namespace Discord
|
||||
internal Embed(EmbedType type,
|
||||
string title,
|
||||
string description,
|
||||
Uri url,
|
||||
string url,
|
||||
DateTimeOffset? timestamp,
|
||||
Color? color,
|
||||
EmbedImage? image,
|
||||
|
||||
@@ -7,11 +7,11 @@ namespace Discord
|
||||
public struct EmbedAuthor
|
||||
{
|
||||
public string Name { get; internal set; }
|
||||
public Uri Url { get; internal set; }
|
||||
public Uri IconUrl { get; internal set; }
|
||||
public Uri ProxyIconUrl { get; internal set; }
|
||||
public string Url { get; internal set; }
|
||||
public string IconUrl { get; internal set; }
|
||||
public string ProxyIconUrl { get; internal set; }
|
||||
|
||||
internal EmbedAuthor(string name, Uri url, Uri iconUrl, Uri proxyIconUrl)
|
||||
internal EmbedAuthor(string name, string url, string iconUrl, string proxyIconUrl)
|
||||
{
|
||||
Name = name;
|
||||
Url = url;
|
||||
|
||||
@@ -7,10 +7,10 @@ namespace Discord
|
||||
public struct EmbedFooter
|
||||
{
|
||||
public string Text { get; internal set; }
|
||||
public Uri IconUrl { get; internal set; }
|
||||
public Uri ProxyUrl { get; internal set; }
|
||||
public string IconUrl { get; internal set; }
|
||||
public string ProxyUrl { get; internal set; }
|
||||
|
||||
internal EmbedFooter(string text, Uri iconUrl, Uri proxyUrl)
|
||||
internal EmbedFooter(string text, string iconUrl, string proxyUrl)
|
||||
{
|
||||
Text = text;
|
||||
IconUrl = iconUrl;
|
||||
|
||||
@@ -6,12 +6,12 @@ namespace Discord
|
||||
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
||||
public struct EmbedImage
|
||||
{
|
||||
public Uri Url { get; }
|
||||
public Uri ProxyUrl { get; }
|
||||
public string Url { get; }
|
||||
public string ProxyUrl { get; }
|
||||
public int? Height { get; }
|
||||
public int? Width { get; }
|
||||
|
||||
internal EmbedImage(Uri url, Uri proxyUrl, int? height, int? width)
|
||||
internal EmbedImage(string url, string proxyUrl, int? height, int? width)
|
||||
{
|
||||
Url = url;
|
||||
ProxyUrl = proxyUrl;
|
||||
|
||||
@@ -7,9 +7,9 @@ namespace Discord
|
||||
public struct EmbedProvider
|
||||
{
|
||||
public string Name { get; }
|
||||
public Uri Url { get; }
|
||||
public string Url { get; }
|
||||
|
||||
internal EmbedProvider(string name, Uri url)
|
||||
internal EmbedProvider(string name, string url)
|
||||
{
|
||||
Name = name;
|
||||
Url = url;
|
||||
|
||||
@@ -6,12 +6,12 @@ namespace Discord
|
||||
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
||||
public struct EmbedThumbnail
|
||||
{
|
||||
public Uri Url { get; }
|
||||
public Uri ProxyUrl { get; }
|
||||
public string Url { get; }
|
||||
public string ProxyUrl { get; }
|
||||
public int? Height { get; }
|
||||
public int? Width { get; }
|
||||
|
||||
internal EmbedThumbnail(Uri url, Uri proxyUrl, int? height, int? width)
|
||||
internal EmbedThumbnail(string url, string proxyUrl, int? height, int? width)
|
||||
{
|
||||
Url = url;
|
||||
ProxyUrl = proxyUrl;
|
||||
|
||||
@@ -6,11 +6,11 @@ namespace Discord
|
||||
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
||||
public struct EmbedVideo
|
||||
{
|
||||
public Uri Url { get; }
|
||||
public string Url { get; }
|
||||
public int? Height { get; }
|
||||
public int? Width { get; }
|
||||
|
||||
internal EmbedVideo(Uri url, int? height, int? width)
|
||||
internal EmbedVideo(string url, int? height, int? width)
|
||||
{
|
||||
Url = url;
|
||||
Height = height;
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Discord
|
||||
{
|
||||
public interface IEmbed
|
||||
{
|
||||
Uri Url { get; }
|
||||
string Url { get; }
|
||||
string Title { get; }
|
||||
string Description { get; }
|
||||
EmbedType Type { get; }
|
||||
|
||||
Reference in New Issue
Block a user