mirror of
https://github.com/danbulant/discord.js
synced 2026-06-07 08:41:29 +00:00
Fix userUpdate not triggering for initial setting (or removal) of avatars (#1849)
This commit is contained in:
parent
99419a3670
commit
f95ae4fcb7
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ class User extends Base {
|
||||||
* @type {string}
|
* @type {string}
|
||||||
* @name User#avatar
|
* @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
|
* Whether or not the user is a bot
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue