mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-14 09:40:10 +00:00
feat: add created to group properties
This commit is contained in:
parent
59833224ce
commit
05b590e7b9
1 changed files with 2 additions and 0 deletions
|
|
@ -15,6 +15,7 @@ export default class Group {
|
||||||
banner?: string;
|
banner?: string;
|
||||||
color?: string;
|
color?: string;
|
||||||
privacy?: GroupPrivacy;
|
privacy?: GroupPrivacy;
|
||||||
|
created?: string;
|
||||||
|
|
||||||
constructor(data: any) {
|
constructor(data: any) {
|
||||||
this.id = data.id;
|
this.id = data.id;
|
||||||
|
|
@ -25,6 +26,7 @@ export default class Group {
|
||||||
this.icon = data.icon;
|
this.icon = data.icon;
|
||||||
this.banner = data.banner;
|
this.banner = data.banner;
|
||||||
this.color = data.color;
|
this.color = data.color;
|
||||||
|
this.created = data.created;
|
||||||
if (data.privacy) {
|
if (data.privacy) {
|
||||||
this.privacy = {}
|
this.privacy = {}
|
||||||
this.privacy.description_privacy = data.privacy.description_privacy;
|
this.privacy.description_privacy = data.privacy.description_privacy;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue