Fix userUpdate not triggering for initial setting (or removal) of avatars (#1849)

This commit is contained in:
Amish Shah
2017-09-05 19:44:59 +01:00
parent 99419a3670
commit f95ae4fcb7

View File

@@ -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