diff --git a/src/commands/Link.ts b/src/commands/Link.ts index 63a2185..d0a1726 100644 --- a/src/commands/Link.ts +++ b/src/commands/Link.ts @@ -29,7 +29,7 @@ export default { try { if (!!codeConfirmation && !!userG) { - if (userCode === codeConfirmation) { + if (userCode === codeConfirmation && !id) { global.config.users.set(interaction.user.id, userG) global.config.authCodes.set(interaction.user.id, "-") await interaction.followUp(`Аккаунт успешно привязан`)