mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
21 lines
409 B
JavaScript
21 lines
409 B
JavaScript
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;
|
|
}
|
|
|
|
}
|