Skip to content

Commit

Permalink
chore: drop discriminator from username
Browse files Browse the repository at this point in the history
Instead of splitting by # in the dashboard, we can just drop the
discriminator entirely.
  • Loading branch information
invakid404 committed Apr 16, 2022
1 parent 087c398 commit dead2c1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion dashboard/src/routes/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
topScorers: stats.slice(0, 3),
rows: stats.slice(3).map((stat) => ({
...stat,
username: stat.username.split('#')[0],
id: stat.username,
})),
},
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
Expand Down

0 comments on commit dead2c1

Please sign in to comment.