Emit -ed and fixed presence vs. userUpdated check

This commit is contained in:
abalabahaha
2015-11-22 17:15:49 -08:00
parent 213379e669
commit c9497a0f75
27 changed files with 49 additions and 33 deletions

View File

@@ -48,6 +48,18 @@ class User extends Equality{
else
return false;
}
equals(obj){
if(obj instanceof User)
return (
this.id === obj.id &&
this.username === obj.username &&
this.discriminator === obj.discriminator &&
this.avatar === obj.avatar
);
else
return false;
}
}
module.exports = User;