summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-12-23 20:06:50 +1100
committerPuyodead1 <puyodead@proton.me>2023-03-18 19:26:15 -0400
commit3f9887d8559341b476fe11d4488bc818491dd5a0 (patch)
tree4b68a3737ee1486e1764f7f1ca4d48a13a9f60ea /src
parentDelete connections (diff)
downloadserver-3f9887d8559341b476fe11d4488bc818491dd5a0.tar.xz
Add discriminator usernames for Discord connection
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,
 		});
 	}