mirror of
https://github.com/gamedig/node-gamedig.git
synced 2024-11-17 17:25:19 +01:00
Remove discriminator's from player names
The widget API seems to always set discriminator to 0000
This commit is contained in:
parent
3a8164cfbc
commit
f337cf6f58
1 changed files with 1 additions and 3 deletions
|
@ -20,9 +20,7 @@ class Discord extends Core {
|
||||||
}
|
}
|
||||||
state.players = json.members.map(v => {
|
state.players = json.members.map(v => {
|
||||||
return {
|
return {
|
||||||
name: v.username + '#' + v.discriminator,
|
name: v.username,
|
||||||
username: v.username,
|
|
||||||
discriminator: v.discriminator,
|
|
||||||
team: v.status
|
team: v.status
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue