Skyler Grey | da16adf | 2023-03-05 10:22:12 +0000 | [diff] [blame^] | 1 | import client, { NucleusClient } from "../utils/client.js"; |
| 2 | import type { Guild } from "discord.js"; |
TheCodedProf | cbe7f6b | 2023-03-03 17:46:08 -0500 | [diff] [blame] | 3 | |
Skyler Grey | da16adf | 2023-03-05 10:22:12 +0000 | [diff] [blame^] | 4 | export const event = "guildDelete"; |
TheCodedProf | cbe7f6b | 2023-03-03 17:46:08 -0500 | [diff] [blame] | 5 | export 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 Grey | da16adf | 2023-03-05 10:22:12 +0000 | [diff] [blame^] | 10 | }; |