mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 11:03:30 +01:00
Added more properties to the server
This commit is contained in:
@@ -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+">";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user