From f337cf6f58d0b0da1435e49023a2e7cf5d9d33d9 Mon Sep 17 00:00:00 2001 From: Tom <25043847+Douile@users.noreply.github.com> Date: Sat, 4 Jan 2020 13:53:36 +0000 Subject: [PATCH] Remove discriminator's from player names The widget API seems to always set discriminator to 0000 --- protocols/discord.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/protocols/discord.js b/protocols/discord.js index 717f50b..c70b846 100644 --- a/protocols/discord.js +++ b/protocols/discord.js @@ -20,9 +20,7 @@ class Discord extends Core { } state.players = json.members.map(v => { return { - name: v.username + '#' + v.discriminator, - username: v.username, - discriminator: v.discriminator, + name: v.username, team: v.status } });