summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/connections/Discord/index.ts3
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,
 		});
 	}