mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +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}
|
||||
* @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
|
||||
|
||||
Reference in New Issue
Block a user