diff --git a/packages/discloud.app/src/structures/User.ts b/packages/discloud.app/src/structures/User.ts index fcbf0f3b..d3e0cc3f 100644 --- a/packages/discloud.app/src/structures/User.ts +++ b/packages/discloud.app/src/structures/User.ts @@ -16,7 +16,7 @@ export default class User extends Base { /** * Your id */ - declare id: string; + declare readonly id: string; /** * Your locale */ @@ -51,6 +51,8 @@ export default class User extends Base { constructor(discloudApp: DiscloudApp, data: ApiUser) { super(discloudApp); + this.id = data.userID; + this._patch(data); } @@ -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!;