TheCodedProf | cbe7f6b | 2023-03-03 17:46:08 -0500 | [diff] [blame] | 1 | import client, { NucleusClient } from '../utils/client.js' |
2 | import type { Guild } from 'discord.js' | ||||
3 | |||||
4 | export const event = 'guildDelete' | ||||
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); | ||||
10 | } |