add clientuser#friends (#807)

* add client#friends

* Update Ready.js

* Update Client.js

* move friends to client.user

* Update ClientUser.js

* Update ClientUser.js
This commit is contained in:
Gus Caplan
2016-10-16 20:28:17 -05:00
committed by Schuyler Cebulskie
parent fc307fab8a
commit e04dbbdb82
3 changed files with 14 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
const User = require('./User');
const Collection = require('../util/Collection');
/**
* Represents the logged in client's Discord User
@@ -21,6 +22,13 @@ class ClientUser extends User {
this.email = data.email;
this.localPresence = {};
this._typing = new Map();
/**
* A Collection of friends for the logged in user.
* <warn>This is only filled for user accounts, not bot accounts!</warn>
* @type {Collection<string, User>}
*/
this.friends = new Collection();
}
edit(data) {