1.0.1 actual

works!
This commit is contained in:
hydrabolt
2015-08-10 23:05:38 +01:00
parent 30204f2ce5
commit a7c9dafe06
8 changed files with 314 additions and 1 deletions

20
lib/user.js Normal file
View File

@@ -0,0 +1,20 @@
exports.User = function(username, id, discriminator, avatar){
this.username = username;
this.discriminator = discriminator;
this.id = id;
this.avatar = avatar;
}
exports.User.prototype.mention = function(){
return "<@"+this.id+">";
}
exports.User.prototype.equals = function(otherUser){
if(otherUser.id === this.id){
return true;
} else {
return false;
}
}