Fix ClientUser#settings not showing up in the documentation (#1757)

This commit is contained in:
Crawl
2017-08-20 22:18:40 +02:00
parent c01e9ad828
commit a7e5e53e5d

View File

@@ -72,7 +72,7 @@ class ClientUser extends User {
* <warn>This is only filled when using a user account.</warn>
* @type {?ClientUserSettings}
*/
if (data.user_settings) this.settings = new ClientUserSettings(this, data.user_settings);
this.settings = data.user_settings ? new ClientUserSettings(this, data.user_settings) : null;
}
edit(data) {