Repository navigation
feat: Discord Developer Policy compliance - #50
Merged
Merged
Conversation
… 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
Aligns Sentinel with the Discord Developer Terms and Developer Policy:
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.GuildMessageTypingintent.SECURITY.md(notify Discord and users, GDPR deadlines).Migration
20261013120000_developer_policyis 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