fix actual user name

This commit is contained in:
The Foxon 2023-07-14 04:27:47 +12:00
parent 26258ba518
commit d7a95db6d9

View File

@ -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 {