mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-15 10:10:12 +00:00
feat: add showing avatar URL in short list
This commit is contained in:
parent
d00fa8bffa
commit
19628ec400
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue