1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-23 02:42:28 +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 { interface UserResponse {
id: string; id: string;
username: string; username: string;
discriminator: string;
avatar_url: string | null; avatar_url: string | null;
} }
@ -119,7 +120,7 @@ export default class DiscordConnection extends Connection {
user_id: userId, user_id: userId,
external_id: userInfo.id, external_id: userInfo.id,
friend_sync: params.friend_sync, friend_sync: params.friend_sync,
name: userInfo.username, name: `${userInfo.username}#${userInfo.discriminator}`,
type: this.id, type: this.id,
}); });
} }