mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-02 22:16:13 +00:00
23 lines
657 B
TypeScript
23 lines
657 B
TypeScript
import { Events, Guild } from 'discord.js';
|
|
import { v4 as uuidv4 } from 'uuid';
|
|
import loggerModule from '../../services/logger';
|
|
|
|
module.exports = {
|
|
name: Events.GuildDelete,
|
|
isDebug: false,
|
|
once: false,
|
|
execute: async (guild: Guild) => {
|
|
const executionId = uuidv4();
|
|
const logger = loggerModule.child({
|
|
source: 'guildDelete.js',
|
|
module: 'event',
|
|
name: 'guildDelete',
|
|
executionId: executionId,
|
|
shardId: guild.shardId,
|
|
guildId: guild.id
|
|
});
|
|
|
|
logger.info(`Removed from guild '${guild.id}' with ${guild.memberCount} members.`);
|
|
}
|
|
};
|