Fix privacy handling in -with-avatar

This commit is contained in:
Ske 2020-11-15 14:45:08 +01:00
parent 27c9e54f17
commit fdcce05da1

View File

@ -153,8 +153,8 @@ namespace PluralKit.Bot
if (opts.IncludeCreated && m.MetadataPrivacy.TryGet(lookupCtx, m.Created, out var created))
profile.Append($"\n**Created on:** {created.FormatZoned(zone)}");
if (opts.IncludeAvatar)
profile.Append($"\n**Avatar URL:** {m.AvatarUrl}");
if (opts.IncludeAvatar && m.AvatarFor(lookupCtx) is {} avatar)
profile.Append($"\n**Avatar URL:** {avatar}");
if (m.DescriptionFor(lookupCtx) is {} desc)
profile.Append($"\n\n{desc}");