Fix legacy prefix/suffix API fields
This commit is contained in:
parent
5d63181cac
commit
8604d25ffe
@ -78,8 +78,8 @@ namespace PluralKit
|
|||||||
|
|
||||||
[JsonProperty("suffix")] [Obsolete("Use PKMember.ProxyTags")] public string Suffix
|
[JsonProperty("suffix")] [Obsolete("Use PKMember.ProxyTags")] public string Suffix
|
||||||
{
|
{
|
||||||
get => ProxyTags?.FirstOrDefault().Prefix;
|
get => ProxyTags?.FirstOrDefault().Suffix;
|
||||||
set => ProxyTags = new[] {new ProxyTag(Prefix, value)};
|
set => ProxyTags = new[] {new ProxyTag(Suffix, value)};
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns a formatted string representing the member's birthday, taking into account that a year of "0001" is hidden
|
/// Returns a formatted string representing the member's birthday, taking into account that a year of "0001" is hidden
|
||||||
|
Loading…
Reference in New Issue
Block a user