From a7e5e53e5dfe0f18978d1cc26412366fb9c124ad Mon Sep 17 00:00:00 2001 From: Crawl Date: Sun, 20 Aug 2017 22:18:40 +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 1ae7d6a87..e6171ebec 100644 --- a/src/structures/ClientUser.js +++ b/src/structures/ClientUser.js @@ -72,7 +72,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; } edit(data) {