fix actual user name
This commit is contained in:
parent
26258ba518
commit
d7a95db6d9
@ -29,8 +29,11 @@ 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 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) {
|
if (!!status && status.Success) {
|
||||||
await interaction.followUp("Сообщение отправлено")
|
await interaction.followUp("Сообщение отправлено")
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user