add ClientPresence, remove ClientPresenceStore

This commit is contained in:
Amish Shah
2018-08-11 10:46:51 +01:00
parent 3c2eaff226
commit ea764afad2
8 changed files with 21 additions and 33 deletions

View File

@@ -105,7 +105,6 @@ class User extends Base {
* @readonly
*/
get presence() {
if (this.client.presences.has(this.id)) return this.client.presences.get(this.id);
for (const guild of this.client.guilds.values()) {
if (guild.presences.has(this.id)) return guild.presences.get(this.id);
}