mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-22 18:32:29 +01:00
Add discriminator usernames for Discord connection
This commit is contained in:
parent
2bae842926
commit
3f9887d855
@ -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,
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user