mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix(User): only assign to bot initially or if info is actually present (#4990)
This commit is contained in:
@@ -45,11 +45,13 @@ class User extends Base {
|
|||||||
this.username = null;
|
this.username = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
if ('bot' in data || typeof this.bot !== 'boolean') {
|
||||||
* Whether or not the user is a bot
|
/**
|
||||||
* @type {boolean}
|
* Whether or not the user is a bot
|
||||||
*/
|
* @type {boolean}
|
||||||
this.bot = Boolean(data.bot);
|
*/
|
||||||
|
this.bot = Boolean(data.bot);
|
||||||
|
}
|
||||||
|
|
||||||
if ('discriminator' in data) {
|
if ('discriminator' in data) {
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user