diff --git a/src/structures/User.js b/src/structures/User.js index e073f988e..97cfc94a2 100644 --- a/src/structures/User.js +++ b/src/structures/User.js @@ -30,15 +30,6 @@ class User extends Base { } _patch(data) { - if (typeof this.bot !== 'boolean') { - /** - * Whether or not the user is a bot - * @type {?boolean} - * @name User#bot - */ - this.bot = 'bot' in data ? Boolean(data.bot) : null; - } - if ('username' in data) { /** * The username of the user @@ -50,6 +41,13 @@ class User extends Base { this.username = null; } + /** + * Whether or not the user is a bot + * @type {?boolean} + * @name User#bot + */ + this.bot = Boolean(data.bot); + if ('discriminator' in data) { /** * A discriminator based on username for the user