From 19628ec400516b8931bf23409297200ee7f1be10 Mon Sep 17 00:00:00 2001 From: spiral Date: Sun, 14 Nov 2021 11:10:19 -0500 Subject: [PATCH] feat: add showing avatar URL in short list --- PluralKit.Bot/Commands/Lists/ContextListExt.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PluralKit.Bot/Commands/Lists/ContextListExt.cs b/PluralKit.Bot/Commands/Lists/ContextListExt.cs index 72b4f77b..1b79dd39 100644 --- a/PluralKit.Bot/Commands/Lists/ContextListExt.cs +++ b/PluralKit.Bot/Commands/Lists/ContextListExt.cs @@ -163,6 +163,8 @@ namespace PluralKit.Bot ret += $"(last message: )"; else if (opts.IncludeCreated && m.MetadataPrivacy.TryGet(lookupCtx, m.Created, out var created)) ret += $"(created at )"; + 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)