blob: 0a4904e5e2509217da20e9289592343986e787d6 [file] [log] [blame]
Skyler Greyda16adf2023-03-05 10:22:12 +00001import client, { NucleusClient } from "../utils/client.js";
2import type { Guild } from "discord.js";
TheCodedProfcbe7f6b2023-03-03 17:46:08 -05003
Skyler Greyda16adf2023-03-05 10:22:12 +00004export const event = "guildDelete";
TheCodedProfcbe7f6b2023-03-03 17:46:08 -05005export 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);
Skyler Greyda16adf2023-03-05 10:22:12 +000010};