From 3f9887d8559341b476fe11d4488bc818491dd5a0 Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Fri, 23 Dec 2022 20:06:50 +1100 Subject: Add discriminator usernames for Discord connection --- src/connections/Discord/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, }); } -- cgit 1.4.1