mirror of https://github.com/clickscodes/nucleus
parent
6dcf600d23
commit
cbe7f6bef6
@ -0,0 +1,10 @@
|
|||||||
|
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);
|
||||||
|
}
|
||||||
Loading…
Reference in new issue