Change how presences are handled

This commit is contained in:
Amish Shah
2016-09-25 14:15:58 +01:00
parent 0e8f1bef97
commit 03651fd6e3
11 changed files with 169 additions and 90 deletions

View File

@@ -87,6 +87,15 @@ class GuildMember {
this._joinDate = new Date(data.joined_at).getTime();
}
/**
* The presence of this Guild Member
* @type {Presence}
* @readonly
*/
get presence() {
return this.guild.presences.get(this.id);
}
/**
* The date this member joined the guild
* @type {Date}