diff options
-rw-r--r-- | src/connections/Discord/index.ts | 3 |
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, }); } |