diff --git a/src/events/guild/guildDelete.ts b/src/events/guild/guildDelete.ts index a41b50d..a211983 100644 --- a/src/events/guild/guildDelete.ts +++ b/src/events/guild/guildDelete.ts @@ -7,6 +7,12 @@ class GuildDeleteEvent extends Event { event: string = 'guildDelete' as const; async handle(context: CommandClient, 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); } }