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

@@ -13,6 +13,10 @@ class User extends Equality{
this.avatar = data.avatar;
this.status = data.status || "offline";
this.gameID = data.game_id || null;
this.typing = {
since : null,
channel : null
};
}
get avatarURL(){
@@ -30,6 +34,20 @@ class User extends Equality{
toString(){
return this.mention();
}
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;
}
}
module.exports = User;