discord_set_guild_safety
Update a Discord server's safety and moderation settings—verification level, explicit content filter, default notifications, and NSFW gate—in one call, changing only the fields provided.
Instructions
Update the server's safety and moderation settings in one call: verification level, explicit content filter, default notification level, and the age-restricted (NSFW) content gate. Only provided fields change. Setting verification_level to high or very_high requires the server to be verified or partnered, otherwise Discord rejects it. Requires Manage Server. Returns the applied values.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nsfw | No | Mark the whole server as age-restricted (true) or safe (false). Discord derives the NSFW level from this flag. | |
| reason | No | Optional reason recorded in the audit log. | |
| guild_id | Yes | Discord server (guild) ID (snowflake). | |
| verification_level | No | How much proof a new member must provide before they can talk. 'high' and 'very_high' require a verified/partnered server. | |
| explicit_content_filter | No | Which members Discord scans media for. | |
| default_message_notifications | No | Default notification level for newly joined members. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| verification_level | Yes | ||
| explicit_content_filter | Yes | ||
| default_message_notifications | Yes |