Fix legacy prefix/suffix API fields

This commit is contained in:
Ske 2019-10-30 09:19:49 +01:00
parent 5d63181cac
commit 8604d25ffe

View File

@ -78,8 +78,8 @@ namespace PluralKit
[JsonProperty("suffix")] [Obsolete("Use PKMember.ProxyTags")] public string Suffix
{
get => ProxyTags?.FirstOrDefault().Prefix;
set => ProxyTags = new[] {new ProxyTag(Prefix, value)};
get => ProxyTags?.FirstOrDefault().Suffix;
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