Update User.js (#1351)

This commit is contained in:
Gus Caplan
2017-04-10 10:20:07 -05:00
committed by Amish Shah
parent 6d4fe89212
commit 8436cbe8b1

View File

@@ -132,6 +132,15 @@ class User {
return this.avatarURL || this.defaultAvatarURL;
}
/**
* The discord "tag" for this user
* @type {string}
* @readonly
*/
get tag() {
return `${this.username}#${this.discriminator}`;
}
/**
* The note that is set for the user
* <warn>This is only available when using a user account.</warn>