Add member list flag to show avatar URL
This commit is contained in:
parent
537783dd96
commit
71d989f948
@ -65,6 +65,8 @@ namespace PluralKit.Bot
|
|||||||
p.IncludeMessageCount = true;
|
p.IncludeMessageCount = true;
|
||||||
if (ctx.MatchFlag("with-created", "wc"))
|
if (ctx.MatchFlag("with-created", "wc"))
|
||||||
p.IncludeCreated = true;
|
p.IncludeCreated = true;
|
||||||
|
if (ctx.MatchFlag("with-avatar", "with-image", "wa", "wi", "ia", "ii", "img"))
|
||||||
|
p.IncludeAvatar = true;
|
||||||
|
|
||||||
// Always show the sort property, too
|
// Always show the sort property, too
|
||||||
if (p.SortProperty == SortProperty.LastSwitch) p.IncludeLastSwitch = true;
|
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))
|
if (opts.IncludeCreated && m.MetadataPrivacy.TryGet(lookupCtx, m.Created, out var created))
|
||||||
profile.Append($"\n**Created on:** {created.FormatZoned(zone)}");
|
profile.Append($"\n**Created on:** {created.FormatZoned(zone)}");
|
||||||
|
|
||||||
|
if (opts.IncludeAvatar)
|
||||||
|
profile.Append($"\n**Avatar URL:** {m.AvatarUrl}");
|
||||||
|
|
||||||
if (m.DescriptionFor(lookupCtx) is {} desc)
|
if (m.DescriptionFor(lookupCtx) is {} desc)
|
||||||
profile.Append($"\n\n{desc}");
|
profile.Append($"\n\n{desc}");
|
||||||
|
|
||||||
|
@ -25,6 +25,7 @@ namespace PluralKit.Bot
|
|||||||
public bool IncludeLastSwitch { get; set; }
|
public bool IncludeLastSwitch { get; set; }
|
||||||
public bool IncludeLastMessage { get; set; }
|
public bool IncludeLastMessage { get; set; }
|
||||||
public bool IncludeCreated { get; set; }
|
public bool IncludeCreated { get; set; }
|
||||||
|
public bool IncludeAvatar { get; set; }
|
||||||
|
|
||||||
public string CreateFilterString()
|
public string CreateFilterString()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user