Fix
UserManager.js:95 if(!this.user.bot) await userObject.getProfile().catch(() => {}); ^ TypeError: Cannot read properties of undefined (reading 'bot') at UserManager.fetch (UserManager.js:95:19)
This commit is contained in:
parent
f60bc1bc71
commit
463d5b1e41
@ -92,7 +92,7 @@ class UserManager extends CachedManager {
|
|||||||
|
|
||||||
const data = await this.client.api.users(id).get();
|
const data = await this.client.api.users(id).get();
|
||||||
const userObject = this._add(data, cache);
|
const userObject = this._add(data, cache);
|
||||||
if(!this.user.bot) await userObject.getProfile().catch(() => {});
|
if(!userObject.bot) await userObject.getProfile().catch(() => {});
|
||||||
return userObject;
|
return userObject;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user