feat: add showing avatar URL in short list

This commit is contained in:
spiral 2021-11-14 11:10:19 -05:00
parent d00fa8bffa
commit 19628ec400
No known key found for this signature in database
GPG Key ID: A6059F0CA0E1BD31

View File

@ -163,6 +163,8 @@ namespace PluralKit.Bot
ret += $"(last message: <t:{DiscordUtils.SnowflakeToInstant(lastMsg.Value).ToUnixTimeSeconds()}>)";
else if (opts.IncludeCreated && m.MetadataPrivacy.TryGet(lookupCtx, m.Created, out var created))
ret += $"(created at <t:{created.ToUnixTimeSeconds()}>)";
else if (opts.IncludeAvatar && m.AvatarFor(lookupCtx) is { } avatarUrl)
ret += $"([avatar URL]({avatarUrl}))";
else if (opts.IncludePronouns && m.PronounsFor(lookupCtx) is { } pronouns)
ret += $"({pronouns})";
else if (m.HasProxyTags)