This interface describes all methods for interacting with user accounts.
The current loading status of the user.
The current User object. This object is immutable, refreshed through refresh, and updated through update.
refresh
update
Registers a callback to be called when the user object is updated.
client.account.onUpdate((user) => { console.log("User updated:", user);}); Copy
client.account.onUpdate((user) => { console.log("User updated:", user);});
The callback function
A function that unregisters the callback.
Refreshes the User object.
Updates the User object.
The new User object.
This interface describes all methods for interacting with user accounts.