From 8436cbe8b164a58a1655a38198a2de0e14ed9f5e Mon Sep 17 00:00:00 2001 From: Gus Caplan Date: Mon, 10 Apr 2017 10:20:07 -0500 Subject: [PATCH] Update User.js (#1351) --- src/structures/User.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/structures/User.js b/src/structures/User.js index 1b876f2de..2dd64202f 100644 --- a/src/structures/User.js +++ b/src/structures/User.js @@ -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 * This is only available when using a user account.