mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-06 13:57:54 +00:00
Add server-specific display names
This commit is contained in:
parent
cd09c9758c
commit
4d07886ec8
9 changed files with 120 additions and 24 deletions
|
|
@ -110,10 +110,10 @@ namespace PluralKit
|
|||
}
|
||||
|
||||
[JsonIgnore] public bool HasProxyTags => ProxyTags.Count > 0;
|
||||
public string ProxyName(string systemTag)
|
||||
public string ProxyName(string systemTag, string guildDisplayName)
|
||||
{
|
||||
if (systemTag == null) return DisplayName ?? Name;
|
||||
return $"{DisplayName ?? Name} {systemTag}";
|
||||
if (systemTag == null) return guildDisplayName ?? DisplayName ?? Name;
|
||||
return $"{guildDisplayName ?? DisplayName ?? Name} {systemTag}";
|
||||
}
|
||||
|
||||
public void ToJson(Utf8JsonWriter w)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue