diff --git a/src/structures/User.js b/src/structures/User.js index f99bf6d15b37..d2766f1c869a 100644 --- a/src/structures/User.js +++ b/src/structures/User.js @@ -45,11 +45,13 @@ class User extends Base { this.username = null; } - /** - * Whether or not the user is a bot - * @type {boolean} - */ - this.bot = Boolean(data.bot); + if ('bot' in data || typeof this.bot !== 'boolean') { + /** + * Whether or not the user is a bot + * @type {boolean} + */ + this.bot = Boolean(data.bot); + } if ('discriminator' in data) { /**