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

This commit is contained in:
SpaceEEC
2017-08-05 15:41:00 +02:00
committed by Crawl
parent e5be902568
commit 317a352337

View File

@@ -78,7 +78,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;
/**
* All of the user's guild settings