mirror of
https://github.com/nx-bat/synapse.git
synced 2026-09-22 17:29:05 -04:00
(dev): added personal notation describing the thoughts I have for the
`guildDelete` event.
This commit is contained in:
@@ -7,6 +7,12 @@ class GuildDeleteEvent extends Event<CommandClient> {
|
||||
event: string = 'guildDelete' as const;
|
||||
|
||||
async handle(context: CommandClient<any, any>, guild: Guild | { id: string }) {
|
||||
// TODO: Instead, it might be safer to have the configuration be marked for deletion instead.
|
||||
// This would prevent the config from being removed if the server owner decides re-adding
|
||||
// the bot is a smart move.
|
||||
//
|
||||
// For simplicity, I'm keeping it like this. In the future this will be handled by
|
||||
// a scheduled task.
|
||||
await deleteConfiguration(guild.id);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user