diff --git a/src/commands/UserMessage.ts b/src/commands/UserMessage.ts index c733946..6635574 100644 --- a/src/commands/UserMessage.ts +++ b/src/commands/UserMessage.ts @@ -29,8 +29,11 @@ export default { await interaction.followUp(`Ошибка отправки сообщения`); return } + const uInfo = global.config.usersInGame.filter(u => u.SlgId === user.SlgId || u.SteamId === user.SteamId)[0] - const status = await ecoController.Message(message, user.Name, `#${global.config.inGameChat}`) + global.config.users.set(interaction.user.id, uInfo) + + const status = await ecoController.Message(message, uInfo.Name, `#${global.config.inGameChat}`) if (!!status && status.Success) { await interaction.followUp("Сообщение отправлено") } else {