mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-15 18:20:11 +00:00
Fix legacy prefix/suffix API fields
This commit is contained in:
parent
5d63181cac
commit
8604d25ffe
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue