feat: show member color in reply embed

This commit is contained in:
spiral
2021-05-01 19:20:00 +01:00
parent cf93b8b3cc
commit 517abf7ff1
3 changed files with 13 additions and 4 deletions

View File

@@ -19,7 +19,9 @@ namespace PluralKit.Core
public string? ServerAvatar { get; }
public string? Avatar { get; }
public bool AllowAutoproxy { get; }
public string? Color { get; }
public string ProxyName(MessageContext ctx) => ctx.SystemTag != null
? $"{ServerName ?? DisplayName ?? Name} {ctx.SystemTag}"

View File

@@ -64,10 +64,12 @@ create function proxy_members(account_id bigint, guild_id bigint)
server_name text,
display_name text,
name text,
server_avatar text,
avatar text,
color char(6),
allow_autoproxy bool
)
as $$
@@ -86,6 +88,8 @@ as $$
member_guild.avatar_url as server_avatar,
members.avatar_url as avatar,
members.color as color,
members.allow_autoproxy as allow_autoproxy
from accounts
inner join systems on systems.id = accounts.system