mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 20:42:27 +00:00
20 lines
409 B
JavaScript
20 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;
|
|
}
|
|
|
|
}
|