Remove user.presence

Error (clientUser.presence)
This commit is contained in:
March 7th
2022-06-04 14:59:55 +07:00
parent 8aecd6943a
commit 6d2cbb442a
5 changed files with 3 additions and 25 deletions

View File

@@ -74,11 +74,6 @@ class User extends Base {
* @readonly
*/
this.applications = null;
/**
* The presence of this user [v12 Patch]
* @type {?Presence}
*/
this.presence = null;
this._patch(data);
}
@@ -167,21 +162,6 @@ class User extends Base {
}
}
/**
* Get presence of this user
* @returns {?Presence}
*/
async getPresence() {
await Promise.all(
this.client.guilds.cache.map(guild => {
const res_ = guild.presences.resolve(this.id);
if (res_) return (this.presence = res_);
else return undefined;
}),
);
return this.presence;
}
/**
* Check relationship status
* @type {Relationship}