Add discriminator usernames for Discord connection

This commit is contained in:
Madeline
2023-03-18 19:26:15 -04:00
committed by Puyodead1
parent 2bae842926
commit 3f9887d855
+2 -1
View File
@@ -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,
});
}