From dead2c12a76b5a1238eac239362a8629909a974a Mon Sep 17 00:00:00 2001 From: invakid404 Date: Sat, 16 Apr 2022 19:33:19 +0300 Subject: [PATCH] chore: drop discriminator from username Instead of splitting by # in the dashboard, we can just drop the discriminator entirely. --- dashboard/src/routes/index.svelte | 1 - main.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/dashboard/src/routes/index.svelte b/dashboard/src/routes/index.svelte index a88d14e..d6b4649 100644 --- a/dashboard/src/routes/index.svelte +++ b/dashboard/src/routes/index.svelte @@ -7,7 +7,6 @@ topScorers: stats.slice(0, 3), rows: stats.slice(3).map((stat) => ({ ...stat, - username: stat.username.split('#')[0], id: stat.username, })), }, diff --git a/main.go b/main.go index 5245cc1..f15568d 100644 --- a/main.go +++ b/main.go @@ -368,7 +368,7 @@ func main() { user := member.User userStatistics = append(userStatistics, statistics{ - Username: fmt.Sprintf("%s#%s", user.Username, user.Discriminator), + Username: user.Username, Avatar: user.AvatarURL(""), Count: count, })