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:
		@@ -92,7 +92,7 @@ class UserManager extends CachedManager {
 | 
			
		||||
 | 
			
		||||
    const data = await this.client.api.users(id).get();
 | 
			
		||||
    const userObject = this._add(data, cache);
 | 
			
		||||
    if(!this.user.bot) await userObject.getProfile().catch(() => {});
 | 
			
		||||
    if(!userObject.bot) await userObject.getProfile().catch(() => {});
 | 
			
		||||
    return userObject;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user