Add server-specific display names
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user