Added presence updates, typing and ban adds

This commit is contained in:
hydrabolt
2015-11-02 16:52:22 +00:00
parent 641683c9d9
commit 576715f531
8 changed files with 195 additions and 8 deletions

View File

@@ -23,6 +23,10 @@ var User = (function (_Equality) {
this.avatar = data.avatar;
this.status = data.status || "offline";
this.gameID = data.game_id || null;
this.typing = {
since: null,
channel: null
};
}
User.prototype.mention = function mention() {
@@ -33,6 +37,10 @@ var User = (function (_Equality) {
return this.mention();
};
User.prototype.equalsStrict = function equalsStrict(obj) {
if (obj instanceof User) return this.id === obj.id && this.username === obj.username && this.discriminator === obj.discriminator && this.avatar === obj.avatar && this.status === obj.status && this.gameID === obj.gameID;else return false;
};
_createClass(User, [{
key: "avatarURL",
get: function get() {