mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
Fix userUpdate not triggering for initial setting (or removal) of avatars (#1849)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user