Fixed footer icon urls

This commit is contained in:
Master Kwoth 2017-07-08 00:05:11 +02:00
parent 96ae60378b
commit 4132565948

View File

@ -40,7 +40,12 @@ namespace NadekoBot.DataStructures
embed.WithDescription(Description); embed.WithDescription(Description);
embed.WithColor(new Discord.Color(Color)); embed.WithColor(new Discord.Color(Color));
if (Footer != null) if (Footer != null)
embed.WithFooter(efb => efb.WithIconUrl(Footer.IconUrl).WithText(Footer.Text)); embed.WithFooter(efb =>
{
efb.WithText(Footer.Text);
if (Uri.IsWellFormedUriString(Footer.IconUrl, UriKind.Absolute))
efb.WithIconUrl(Footer.IconUrl);
});
if (Thumbnail != null && Uri.IsWellFormedUriString(Thumbnail, UriKind.Absolute)) if (Thumbnail != null && Uri.IsWellFormedUriString(Thumbnail, UriKind.Absolute))
embed.WithThumbnailUrl(Thumbnail); embed.WithThumbnailUrl(Thumbnail);