Skip to content

feat: add 30-day grace period before deleting removed-guild data - #22

Merged
masonlet merged 2 commits into
mainfrom
feat/removal-grace-period
Jul 7, 2026
Merged

feat: add 30-day grace period before deleting removed-guild data#22
masonlet merged 2 commits into
mainfrom
feat/removal-grace-period

Conversation

@masonlet

@masonlet masonlet commented Jul 7, 2026

Copy link
Copy Markdown
Owner

Summary

Replaces immediate deletion on guild removal with a 30-day grace period protecting against accidental removals.

Changes

  • guildDelete now writes a removed.json timestamp marker instead of deleting data
  • guildCreate clears the marker if the bot is re-invited within the grace period
  • The existing cleanup job purges guild data once the marker is older than 30 days
  • Tests cover marking, clearing, age scanning, and the purge pass

@masonlet
masonlet merged commit 403ce9e into main Jul 7, 2026
2 checks passed
@masonlet
masonlet deleted the feat/removal-grace-period branch July 7, 2026 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant