Fix #121 and smail update

This commit is contained in:
March 7th
2022-06-04 13:26:53 +07:00
parent e30b8339e7
commit e3d842db53
8 changed files with 103 additions and 1504 deletions

View File

@@ -162,6 +162,22 @@ class User extends Base {
}
}
/**
* The presence of this user [v12 Patch]
* @type {Presence}
* @readonly
*/
get presence() {
let res;
for (const guild of this.client.guilds.cache.map(g => g.presences)) {
if (guild.resolve(this.id)) {
res = guild.resolve(this.id);
break;
}
}
return res;
}
/**
* Check relationship status
* @type {Relationship}