f
This commit is contained in:
parent
6644b04ea3
commit
9f25caf4eb
@ -29,7 +29,7 @@ export default {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
if (!!codeConfirmation && !!userG) {
|
if (!!codeConfirmation && !!userG) {
|
||||||
if (userCode === codeConfirmation && !id) {
|
if (userCode === codeConfirmation) {
|
||||||
global.config.users.set(interaction.user.id, userG)
|
global.config.users.set(interaction.user.id, userG)
|
||||||
global.config.authCodes.set(interaction.user.id, "-")
|
global.config.authCodes.set(interaction.user.id, "-")
|
||||||
await interaction.followUp(`Аккаунт успешно привязан`)
|
await interaction.followUp(`Аккаунт успешно привязан`)
|
||||||
|
@ -20,7 +20,7 @@ export default {
|
|||||||
await interaction.deferReply({ ephemeral: true })
|
await interaction.deferReply({ ephemeral: true })
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (user !== undefined) {
|
if (user !== undefined && !!message) {
|
||||||
if (!global.config.usersInGame.filter(u => u.SlgId === user.SlgId && u.SteamId === user.SteamId).length) {
|
if (!global.config.usersInGame.filter(u => u.SlgId === user.SlgId && u.SteamId === user.SteamId).length) {
|
||||||
await interaction.followUp(`Ошибка отправки сообщения, повторите привязку аккаунта или повторите через 20 секунд`);
|
await interaction.followUp(`Ошибка отправки сообщения, повторите привязку аккаунта или повторите через 20 секунд`);
|
||||||
return
|
return
|
||||||
@ -29,7 +29,7 @@ export default {
|
|||||||
await interaction.followUp(`Ошибка отправки сообщения`);
|
await interaction.followUp(`Ошибка отправки сообщения`);
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
const uInfo = global.config.usersInGame.filter(u => u.SlgId === user.SlgId || u.SteamId === user.SteamId)[0]
|
const uInfo = global.config.usersInGame.filter(u => u.SlgId === user.SlgId && u.SteamId === user.SteamId)[0]
|
||||||
|
|
||||||
global.config.users.set(interaction.user.id, uInfo)
|
global.config.users.set(interaction.user.id, uInfo)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user