Skip to content

feat: Discord Developer Policy compliance - #50

Merged
haxurus merged 2 commits into
mainfrom
compliance/developer-policy
Oct 13, 2026
Merged

haxurus merged 2 commits into
mainfrom
compliance/developer-policy

Conversation

@haxurus

@haxurus haxurus commented Oct 13, 2026

Copy link
Copy Markdown
Owner

What and why

Aligns Sentinel with the Discord Developer Terms and Developer Policy:

  • Monetization: paid plans are sold only as Discord Premium Apps guild subscriptions, at the same price as the pricing page. SKU IDs are configured in the super console (new Discord subscriptions tab); the API syncs entitlements every 2 minutes through a new read-only bot RPC (GET /entitlements). A purchase switches the plan on, a renewal extends it (3-day grace), an ended subscription returns the server to Free. If entitlements cannot be read, nothing changes. Manual plans from the super console are now free trials/gifts only.
  • No price differences: coupons and multi-server discounts removed everywhere; coupon rows deleted (table kept for rollback).
  • Data minimisation: typing and raw Gateway loggers removed with their data and the GuildMessageTyping intent.
  • Deletion when no longer needed: servers the bot is removed from (including while offline) are deleted 30 days later.
  • Security incidents: incident response procedure in SECURITY.md (notify Discord and users, GDPR deadlines).
  • Privacy/terms updated (Discord as seller, no AI training, 30-day deletion), pricing page, dashboard, README, listings.

Migration 20261013120000_developer_policy is additive apart from deleting typing/raw events and coupon rows; the previous release keeps working.

How it was tested

CI: typecheck, unit tests (new discord-plans.test.ts), migrations and schema drift check, DB privilege checks.

🤖 Generated with Claude Code

haxurus and others added 2 commits October 13, 2026 08:52
… typing/raw loggers, removed-server cleanup

- Paid plans are sold only as Discord Premium Apps guild subscriptions. SKU IDs
  are set in the super console; the API reads the active entitlements through
  the bot (read-only REST) every two minutes and switches plans on, extends or
  ends them. An outage never downgrades. Manual plans are free trials/gifts.
- Coupons and multi-subscription discounts removed (API, super console, pricing
  page); existing coupon rows deleted, table kept for rollback.
- Typing and raw Gateway loggers removed, with their stored events and the
  GuildMessageTyping intent.
- Servers the bot is removed from are deleted 30 days later (cascade), also when
  removed while the bot was offline.
- Incident response procedure in SECURITY.md; privacy and terms updated
  (Discord as seller, no AI training, 30-day deletion); 70 event types.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@haxurus
haxurus merged commit e581da8 into main Oct 13, 2026
5 checks passed
@haxurus
haxurus deleted the compliance/developer-policy branch October 13, 2026 06:56
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