From ee7b2d1c869701a29567689a80beefed0cdb1432 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Fri, 16 Jun 2023 20:37:05 +0200 Subject: Updated 2 files (automated) --- includes/external/addressbook/discord.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/external/addressbook/discord.js') 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']; } -- cgit