1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-26 04:03:03 +01:00

Add discriminator usernames for Discord connection

This commit is contained in:
Madeline 2022-12-23 20:06:50 +11:00 committed by Puyodead1
parent 2bae842926
commit 3f9887d855
No known key found for this signature in database
GPG Key ID: A4FA4FEC0DD353FC

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,
});
}