From f95ae4fcb7b92796d294fb7dba728b0c1e6dacfb Mon Sep 17 00:00:00 2001 From: Amish Shah Date: Tue, 5 Sep 2017 19:44:59 +0100 Subject: [PATCH] Fix userUpdate not triggering for initial setting (or removal) of avatars (#1849) --- src/structures/User.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/User.js b/src/structures/User.js index 9df33df55..3e50b23b7 100644 --- a/src/structures/User.js +++ b/src/structures/User.js @@ -43,7 +43,7 @@ class User extends Base { * @type {string} * @name User#avatar */ - if (data.avatar) this.avatar = data.avatar; + if (typeof data.avatar !== 'undefined') this.avatar = data.avatar; /** * Whether or not the user is a bot