diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-12-23 20:06:50 +1100 |
---|---|---|
committer | Puyodead1 <puyodead@proton.me> | 2023-03-18 19:26:15 -0400 |
commit | 3f9887d8559341b476fe11d4488bc818491dd5a0 (patch) | |
tree | 4b68a3737ee1486e1764f7f1ca4d48a13a9f60ea /src | |
parent | Delete connections (diff) | |
download | server-3f9887d8559341b476fe11d4488bc818491dd5a0.tar.xz |
Add discriminator usernames for Discord connection
Diffstat (limited to 'src')
-rw-r--r-- | src/connections/Discord/index.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/connections/Discord/index.ts b/src/connections/Discord/index.ts index 11f98750..05074c26 100644 --- a/src/connections/Discord/index.ts +++ b/src/connections/Discord/index.ts @@ -20,6 +20,7 @@ interface OAuthTokenResponse { interface UserResponse { id: string; username: string; + discriminator: string; avatar_url: string | null; } @@ -119,7 +120,7 @@ export default class DiscordConnection extends Connection { user_id: userId, external_id: userInfo.id, friend_sync: params.friend_sync, - name: userInfo.username, + name: `${userInfo.username}#${userInfo.discriminator}`, type: this.id, }); } |