feat: add showing avatar URL in short list
This commit is contained in:
parent
d00fa8bffa
commit
19628ec400
@ -163,6 +163,8 @@ namespace PluralKit.Bot
|
|||||||
ret += $"(last message: <t:{DiscordUtils.SnowflakeToInstant(lastMsg.Value).ToUnixTimeSeconds()}>)";
|
ret += $"(last message: <t:{DiscordUtils.SnowflakeToInstant(lastMsg.Value).ToUnixTimeSeconds()}>)";
|
||||||
else if (opts.IncludeCreated && m.MetadataPrivacy.TryGet(lookupCtx, m.Created, out var created))
|
else if (opts.IncludeCreated && m.MetadataPrivacy.TryGet(lookupCtx, m.Created, out var created))
|
||||||
ret += $"(created at <t:{created.ToUnixTimeSeconds()}>)";
|
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)
|
else if (opts.IncludePronouns && m.PronounsFor(lookupCtx) is { } pronouns)
|
||||||
ret += $"({pronouns})";
|
ret += $"({pronouns})";
|
||||||
else if (m.HasProxyTags)
|
else if (m.HasProxyTags)
|
||||||
|
Loading…
Reference in New Issue
Block a user