feat(http, model): Implement screening API - #2572
Draft
Powerbyte7 wants to merge 1 commit into
Draft
Conversation
Powerbyte7
force-pushed
the
feat/screening
branch
from
August 12, 2026 04:39
c3ee4c2 to
4dd83c4
Compare
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.
Discord has recently exposed endpoints for bots to fetch, approve, and deny member join requests using the screening feature. This functionality hasn't been officially announced yet, but it's already part of the OpenAPI spec and shouldn't take much longer to release. In the meantime, I've decided to fork Twilight to adopt it early. I'm in a large server which could make good use of the automations it enables.
Here are some things I noticed whilst using the API:
/requests/(user_id | application_id).statusquery parameter doesn't seem to work. This used to cause a 500 error, now it yields an empty list.And here are some notes about the implementation in this PR:
Once the API is officially announced, I'll try to get this PR finalized. I've tried my best at following the code style, let me know if I've missed anything.
Post-announcement checklist: