Added more properties to the server

This commit is contained in:
hydrabolt
2015-08-14 11:48:44 +01:00
parent efeeb06500
commit e4723c7dfe
3 changed files with 35 additions and 3 deletions

View File

@@ -14,6 +14,12 @@ exports.User = function(username, id, discriminator, avatar){
this.avatar = avatar;
}
exports.User.prototype.getAvatarURL = function(){
if(!this.avatar)
return false;
return "https://discordapp.com/api/users/" + this.id + "/avatars/" + this.avatar + ".jpg";
}
exports.User.prototype.mention = function(){
return "<@"+this.id+">";
}