diff --git a/PluralKit.Bot/Commands/Lists/ContextListExt.cs b/PluralKit.Bot/Commands/Lists/ContextListExt.cs index 8bee0927..894a2bfc 100644 --- a/PluralKit.Bot/Commands/Lists/ContextListExt.cs +++ b/PluralKit.Bot/Commands/Lists/ContextListExt.cs @@ -65,6 +65,8 @@ namespace PluralKit.Bot p.IncludeMessageCount = true; if (ctx.MatchFlag("with-created", "wc")) p.IncludeCreated = true; + if (ctx.MatchFlag("with-avatar", "with-image", "wa", "wi", "ia", "ii", "img")) + p.IncludeAvatar = true; // Always show the sort property, too if (p.SortProperty == SortProperty.LastSwitch) p.IncludeLastSwitch = true; @@ -151,6 +153,9 @@ 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 (m.DescriptionFor(lookupCtx) is {} desc) profile.Append($"\n\n{desc}"); diff --git a/PluralKit.Bot/Commands/Lists/MemberListOptions.cs b/PluralKit.Bot/Commands/Lists/MemberListOptions.cs index b70ab7bf..254188b4 100644 --- a/PluralKit.Bot/Commands/Lists/MemberListOptions.cs +++ b/PluralKit.Bot/Commands/Lists/MemberListOptions.cs @@ -25,6 +25,7 @@ namespace PluralKit.Bot public bool IncludeLastSwitch { get; set; } public bool IncludeLastMessage { get; set; } public bool IncludeCreated { get; set; } + public bool IncludeAvatar { get; set; } public string CreateFilterString() {