mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-09 15:27:54 +00:00
Move system tag/icon from ProxyMember to MessageContent
This commit is contained in:
parent
2a39489c4d
commit
729930a562
4 changed files with 17 additions and 18 deletions
|
|
@ -15,16 +15,14 @@ namespace PluralKit.Core
|
|||
public string? ServerName { get; set; }
|
||||
public string? DisplayName { get; set; }
|
||||
public string Name { get; set; } = "";
|
||||
public string? SystemTag { get; set; }
|
||||
|
||||
public string? ServerAvatar { get; set; }
|
||||
public string? Avatar { get; set; }
|
||||
public string? SystemIcon { get; set; }
|
||||
|
||||
public string ProxyName => SystemTag != null
|
||||
? $"{ServerName ?? DisplayName ?? Name} {SystemTag}"
|
||||
public string ProxyName(MessageContext ctx) => ctx.SystemTag != null
|
||||
? $"{ServerName ?? DisplayName ?? Name} {ctx.SystemTag}"
|
||||
: ServerName ?? DisplayName ?? Name;
|
||||
|
||||
public string? ProxyAvatar => ServerAvatar ?? Avatar ?? SystemIcon;
|
||||
public string? ProxyAvatar(MessageContext ctx) => ServerAvatar ?? Avatar ?? ctx.SystemAvatar;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue