mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 13:14: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();
|
||||
owner.send(messageOptions);
|
||||
|
||||
const logsEmbed = new Discord.MessageEmbed()
|
||||
const embed = new Discord.MessageEmbed()
|
||||
.setAuthor({
|
||||
name: guild.name,
|
||||
iconURL: guild.iconURL({
|
||||
|
@ -54,6 +54,8 @@ module.exports = class {
|
|||
})
|
||||
.setColor("#32CD32")
|
||||
.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) {
|
||||
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()
|
||||
.setAuthor({
|
||||
name: guild.name,
|
||||
|
@ -17,7 +14,9 @@ module.exports = class {
|
|||
})
|
||||
})
|
||||
.setColor("#B22222")
|
||||
.setDescription(text);
|
||||
this.client.channels.cache.get(this.client.config.support.logs).send(embed);
|
||||
.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({
|
||||
embeds: [embed]
|
||||
});
|
||||
}
|
||||
};
|
Loading…
Reference in a new issue