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:
March 7th 2022-03-25 18:58:17 +07:00
parent f60bc1bc71
commit 463d5b1e41

View File

@ -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;
} }