diff options
author | RaindropsSys <contact@minteck.org> | 2023-06-16 20:37:05 +0200 |
---|---|---|
committer | RaindropsSys <contact@minteck.org> | 2023-06-16 20:37:05 +0200 |
commit | ee7b2d1c869701a29567689a80beefed0cdb1432 (patch) | |
tree | 51faf3ef5a1d1c04f45082c93e52e6bcf231380e /includes/external/addressbook/discord.js | |
parent | 9d64ae62bcbf245de9caa11885fa777fc37cfb9e (diff) | |
download | pluralconnect-ee7b2d1c869701a29567689a80beefed0cdb1432.tar.gz pluralconnect-ee7b2d1c869701a29567689a80beefed0cdb1432.tar.bz2 pluralconnect-ee7b2d1c869701a29567689a80beefed0cdb1432.zip |
Updated 2 files (automated)
Diffstat (limited to 'includes/external/addressbook/discord.js')
-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']; } |