Change to url

This commit is contained in:
Shikhir Arora 2017-11-16 10:23:42 -05:00 committed by GitHub
parent 8db0abf318
commit c49e52c241
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@ namespace NadekoBot.Common
public string PlainText { get; set; } public string PlainText { get; set; }
public string Title { get; set; } public string Title { get; set; }
public string Description { get; set; } public string Description { get; set; }
public string TitleURL { get; set; } public string url { get; set; }
public CREmbedFooter Footer { get; set; } public CREmbedFooter Footer { get; set; }
public string Thumbnail { get; set; } public string Thumbnail { get; set; }
public string Image { get; set; } public string Image { get; set; }
@ -27,7 +27,7 @@ namespace NadekoBot.Common
public bool IsValid => public bool IsValid =>
!string.IsNullOrWhiteSpace(Title) || !string.IsNullOrWhiteSpace(Title) ||
!string.IsNullOrWhiteSpace(Description) || !string.IsNullOrWhiteSpace(Description) ||
!string.IsNullOrWhiteSpace(TitleURL) || !string.IsNullOrWhiteSpace(url) ||
!string.IsNullOrWhiteSpace(Thumbnail) || !string.IsNullOrWhiteSpace(Thumbnail) ||
!string.IsNullOrWhiteSpace(Image) || !string.IsNullOrWhiteSpace(Image) ||
(Footer != null && (!string.IsNullOrWhiteSpace(Footer.Text) || !string.IsNullOrWhiteSpace(Footer.IconUrl))) || (Footer != null && (!string.IsNullOrWhiteSpace(Footer.Text) || !string.IsNullOrWhiteSpace(Footer.IconUrl))) ||
@ -41,8 +41,8 @@ namespace NadekoBot.Common
embed.WithTitle(Title); embed.WithTitle(Title);
if (!string.IsNullOrWhiteSpace(Description)) if (!string.IsNullOrWhiteSpace(Description))
embed.WithDescription(Description); embed.WithDescription(Description);
if (!string.IsNullOrWhiteSpace(TitleURL)) if (!string.IsNullOrWhiteSpace(url))
embed.WithUrl(TitleURL); embed.WithUrl(url);
embed.WithColor(new Discord.Color(Color)); embed.WithColor(new Discord.Color(Color));
if (Footer != null) if (Footer != null)
embed.WithFooter(efb => embed.WithFooter(efb =>