discord_set_membership_gate
Turn Discord membership screening on or off by toggling the member verification feature; enabling may be silently ignored by Discord, while disabling works and returns the real gate state.
Instructions
Turn the membership screening gate on or off by adding or removing the MEMBER_VERIFICATION_GATE_ENABLED feature. LIMITATION, verified against a live server: Discord returns HTTP 200 but silently ignores an API request to ADD this feature, so enabling it from here does not work. It must be turned on once by hand in the Discord client (Server Settings > Safety Setup > Membership Screening). Disabling it through this tool does work. The returned 'enabled' field always reflects the real state after the call, so treat enabled:false as Discord having refused. Requires the COMMUNITY feature and Manage Server.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Optional reason recorded in the audit log. | |
| enabled | Yes | true to gate new members behind the screening form, false to stop gating. | |
| guild_id | Yes | Discord server (guild) ID (snowflake). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| enabled | Yes | ||
| features | Yes |