Skip to content

Commit

Permalink
fix: improve handling of Discord usernames with discriminator
Browse files Browse the repository at this point in the history
  • Loading branch information
beeman committed Feb 19, 2024
1 parent f81808d commit 7965ffe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function createDiscordProfile(profile: DiscordProfile) {

return {
externalId: profile.id,
username: parseInt(profile.discriminator) > 0 ? `${profile.username}#${profile.discriminator}` : profile.username,
username: parseInt(profile.discriminator) > 0 ? `${profile.username}.${profile.discriminator}` : profile.username,
name: profile.global_name ?? profile.username,
avatarUrl,
bannerUrl,
Expand Down

0 comments on commit 7965ffe

Please sign in to comment.