diff options
Diffstat (limited to 'includes/external/addressbook')
-rw-r--r-- | includes/external/addressbook/discord.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/external/addressbook/discord.js b/includes/external/addressbook/discord.js index 068f6b0..0993799 100644 --- a/includes/external/addressbook/discord.js +++ b/includes/external/addressbook/discord.js @@ -27,7 +27,7 @@ function sleep(ms) { copy: [ { title: "Copy full username", - text: `${data['username']}#${data['discriminator']}` + text: data['discriminator'] === "0" ? data['username'] : `${data['username']}#${data['discriminator']}` }, { title: "Copy mention", @@ -45,7 +45,7 @@ function sleep(ms) { } if (data['display_name'] || data['global_name']) { - obj.description = data['username'] + "#" + data['discriminator']; + obj.description = data['discriminator'] === "0" ? data['username'] : `${data['username']}#${data['discriminator']}`; } else { obj.description = "#" + data['discriminator']; } |