mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-25 14:44:58 +05:00
Фиксы
This commit is contained in:
parent
474bf8b5d0
commit
221daac4a4
2 changed files with 8 additions and 7 deletions
|
@ -45,7 +45,7 @@ module.exports = class {
|
||||||
const owner = await guild.fetchOwner();
|
const owner = await guild.fetchOwner();
|
||||||
owner.send(messageOptions);
|
owner.send(messageOptions);
|
||||||
|
|
||||||
const logsEmbed = new Discord.MessageEmbed()
|
const embed = new Discord.MessageEmbed()
|
||||||
.setAuthor({
|
.setAuthor({
|
||||||
name: guild.name,
|
name: guild.name,
|
||||||
iconURL: guild.iconURL({
|
iconURL: guild.iconURL({
|
||||||
|
@ -54,6 +54,8 @@ module.exports = class {
|
||||||
})
|
})
|
||||||
.setColor("#32CD32")
|
.setColor("#32CD32")
|
||||||
.setDescription(`Зашёл на сервер **${guild.name}**. На нём **${guild.members.cache.filter((m) => !m.user.bot).size}** пользователей (из них ${guild.members.cache.filter((m) => m.user.bot).size} ботов)`);
|
.setDescription(`Зашёл на сервер **${guild.name}**. На нём **${guild.members.cache.filter((m) => !m.user.bot).size}** пользователей (из них ${guild.members.cache.filter((m) => m.user.bot).size} ботов)`);
|
||||||
this.client.channels.cache.get(this.client.config.support.logs).send(logsEmbed);
|
this.client.channels.cache.get(this.client.config.support.logs).send({
|
||||||
|
embeds: [embed]
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
|
@ -6,9 +6,6 @@ module.exports = class {
|
||||||
}
|
}
|
||||||
|
|
||||||
async run(guild) {
|
async run(guild) {
|
||||||
const text = `Вышел с сервера **${guild.name}**. На нём **${guild.members.cache.filter((m) => !m.user.bot).size}** пользователей (из них ${guild.members.cache.filter((m) => m.user.bot).size} ботов)`;
|
|
||||||
|
|
||||||
// Sends log embed in the logs channel
|
|
||||||
const embed = new Discord.MessageEmbed()
|
const embed = new Discord.MessageEmbed()
|
||||||
.setAuthor({
|
.setAuthor({
|
||||||
name: guild.name,
|
name: guild.name,
|
||||||
|
@ -17,7 +14,9 @@ module.exports = class {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
.setColor("#B22222")
|
.setColor("#B22222")
|
||||||
.setDescription(text);
|
.setDescription(`Вышел с сервера **${guild.name}**. На нём **${guild.members.cache.filter((m) => !m.user.bot).size}** пользователей (из них ${guild.members.cache.filter((m) => m.user.bot).size} ботов)`);
|
||||||
this.client.channels.cache.get(this.client.config.support.logs).send(embed);
|
this.client.channels.cache.get(this.client.config.support.logs).send({
|
||||||
|
embeds: [embed]
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
Loading…
Reference in a new issue