fix: import nickname from Tupperbox

This commit is contained in:
spiral 2021-10-29 12:59:19 -04:00
parent 3bc451eb4b
commit 456545efe8
No known key found for this signature in database
GPG Key ID: A6059F0CA0E1BD31

View File

@ -76,6 +76,7 @@ namespace PluralKit.Core
patch.Birthday = LocalDate.FromDateTime(parsed.Value.ToDateTimeUtc());
}
if (tupper.ContainsKey("description")) patch.Description = tupper.Value<string>("description");
if (tupper.ContainsKey("nick")) patch.DisplayName = tupper.Value<string>("nick");
if (tupper.ContainsKey("tag") && tupper["tag"].Type != JTokenType.Null)
{
var tag = tupper.Value<string>("tag");