Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gorniaky committed Mar 1, 2024
1 parent 2a8af3f commit f5ff668
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/discloud.app/src/structures/User.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default class User extends Base {
/**
* Your id
*/
declare id: string;
declare readonly id: string;
/**
* Your locale
*/
Expand Down Expand Up @@ -51,6 +51,8 @@ export default class User extends Base {
constructor(discloudApp: DiscloudApp, data: ApiUser) {
super(discloudApp);

this.id = data.userID;

this._patch(data);
}

Expand All @@ -73,9 +75,6 @@ export default class User extends Base {
}
}

if ("userID" in data)
this.id = data.userID!;

if ("locale" in data)
this.locale = data.locale!;

Expand Down

0 comments on commit f5ff668

Please sign in to comment.