From 317a3523372a8ef7e66a827c59900809e624c40a Mon Sep 17 00:00:00 2001 From: SpaceEEC Date: Sat, 5 Aug 2017 15:41:00 +0200 Subject: [PATCH] Fix ClientUser#settings not showing up in the documentation (#1757) --- src/structures/ClientUser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/ClientUser.js b/src/structures/ClientUser.js index 8f75a5522..d959375a3 100644 --- a/src/structures/ClientUser.js +++ b/src/structures/ClientUser.js @@ -78,7 +78,7 @@ class ClientUser extends User { * This is only filled when using a user account. * @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