.log userupdated will properly log gif avatar changes now

This commit is contained in:
Master Kwoth committed 2017-10-19 09:04:53 +02:00
1 parent cae1df82b8
commit 9050291e85
2 files changed
+5 -5

No files matched your search

@@ -154,10 +154,10 @@ namespace NadekoBot.Modules.Administration.Services
.WithFooter(fb => fb.WithText(CurrentTime(g)))
.WithOkColor();
if (Uri.IsWellFormedUriString(before.GetAvatarUrl(), UriKind.Absolute))
embed.WithThumbnailUrl(before.GetAvatarUrl());
if (Uri.IsWellFormedUriString(after.GetAvatarUrl(), UriKind.Absolute))
embed.WithImageUrl(after.GetAvatarUrl());
if (Uri.IsWellFormedUriString(before.RealAvatarUrl(), UriKind.Absolute))
embed.WithThumbnailUrl(before.RealAvatarUrl());
if (Uri.IsWellFormedUriString(after.RealAvatarUrl(), UriKind.Absolute))
embed.WithImageUrl(after.RealAvatarUrl());
}
else
{