blob: 92af4018090ccb44676510005b305c5684a226cc [file] [log] [blame]
import client, { NucleusClient } from '../utils/client.js'
import type { Guild } from 'discord.js'
export const event = 'guildDelete'
export const callback = async (_client: NucleusClient, guild: Guild) => {
await client.database.guilds.delete(guild.id);
await client.database.history.delete(guild.id);
await client.database.notes.delete(guild.id);
await client.database.transcripts.deleteAll(guild.id);
}