mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-09 07:17:56 +00:00
Move proxy name/avatar logic to the bot itself
This commit is contained in:
parent
3d62a0d33c
commit
2a39489c4d
2 changed files with 34 additions and 10 deletions
|
|
@ -11,7 +11,20 @@ namespace PluralKit.Core
|
|||
public int Id { get; set; }
|
||||
public IReadOnlyCollection<ProxyTag> ProxyTags { get; set; } = new ProxyTag[0];
|
||||
public bool KeepProxy { get; set; }
|
||||
public string ProxyName { get; set; } = "";
|
||||
public string? ProxyAvatar { get; set; }
|
||||
|
||||
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}"
|
||||
: ServerName ?? DisplayName ?? Name;
|
||||
|
||||
public string? ProxyAvatar => ServerAvatar ?? Avatar ?? SystemIcon;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue