mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
feat: show member color in reply embed
This commit is contained in:
parent
cf93b8b3cc
commit
517abf7ff1
3 changed files with 13 additions and 4 deletions
|
|
@ -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}"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue