mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-23 05:34:58 +05:00
ed8cc4f0be
Мелкие правки
31 lines
No EOL
673 B
JavaScript
31 lines
No EOL
673 B
JavaScript
const { EmbedBuilder } = require("discord.js"),
|
||
BaseEvent = require("../../base/BaseEvent");
|
||
|
||
class GuildDelete extends BaseEvent {
|
||
constructor() {
|
||
super({
|
||
name: "guildDelete",
|
||
once: false
|
||
});
|
||
}
|
||
|
||
/**
|
||
*
|
||
* @param {import("../../base/JaBa")} client
|
||
* @param {import("discord.js").Guild} guild
|
||
*/
|
||
async execute(client, guild) {
|
||
const embed = new EmbedBuilder()
|
||
.setAuthor({
|
||
name: guild.name,
|
||
iconURL: guild.iconURL()
|
||
})
|
||
.setColor("#B22222")
|
||
.setDescription(`Вышел с сервера **${guild.name}**.`);
|
||
client.channels.cache.get(client.config.support.logs).send({
|
||
embeds: [embed]
|
||
});
|
||
}
|
||
}
|
||
|
||
module.exports = GuildDelete; |