blob: 92af4018090ccb44676510005b305c5684a226cc [file] [log] [blame]
Samuel Shuertcc63dee2023-03-03 18:54:29 -05001import client, { NucleusClient } from '../utils/client.js'
2import type { Guild } from 'discord.js'
3
4export const event = 'guildDelete'
5export const callback = async (_client: NucleusClient, guild: Guild) => {
6 await client.database.guilds.delete(guild.id);
7 await client.database.history.delete(guild.id);
8 await client.database.notes.delete(guild.id);
9 await client.database.transcripts.deleteAll(guild.id);
10}