mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-07 14:27:54 +00:00
Add displayname to PK export/import
- Add display_name property to member on PK export - Set display_name if provided when importing from PK export file
This commit is contained in:
parent
0ec522ca0a
commit
633c181e84
1 changed files with 3 additions and 0 deletions
|
|
@ -49,6 +49,7 @@ namespace PluralKit.Bot
|
|||
{
|
||||
Id = member.Hid,
|
||||
Name = member.Name,
|
||||
DisplayName = member.DisplayName,
|
||||
Description = member.Description,
|
||||
Birthday = member.Birthday != null ? Formats.DateExportFormat.Format(member.Birthday.Value) : null,
|
||||
Pronouns = member.Pronouns,
|
||||
|
|
@ -117,6 +118,7 @@ namespace PluralKit.Bot
|
|||
|
||||
// Apply member info
|
||||
member.Name = dataMember.Name;
|
||||
if (dataMember.DisplayName != null) member.DisplayName = dataMember.DisplayName;
|
||||
if (dataMember.Description != null) member.Description = dataMember.Description;
|
||||
if (dataMember.Color != null) member.Color = dataMember.Color;
|
||||
if (dataMember.AvatarUrl != null) member.AvatarUrl = dataMember.AvatarUrl;
|
||||
|
|
@ -173,6 +175,7 @@ namespace PluralKit.Bot
|
|||
{
|
||||
[JsonProperty("id")] public string Id;
|
||||
[JsonProperty("name")] public string Name;
|
||||
[JsonProperty("display_name")] public string DisplayName;
|
||||
[JsonProperty("description")] public string Description;
|
||||
[JsonProperty("birthday")] public string Birthday;
|
||||
[JsonProperty("pronouns")] public string Pronouns;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue