discord_set_guild_channels
Assign a Discord server's special channel slots—AFK, system, rules, public updates, and safety alerts—while changing only the slots you provide. Requires Manage Server.
Instructions
Point the server's special channel slots at specific channels: the AFK channel and timeout, the system channel (where join/boost notices post), the rules channel, the public updates channel, and the safety alerts channel. Only provided slots change. The rules, public-updates and safety-alerts slots require the COMMUNITY feature; Discord rejects them otherwise. AFK must be a voice channel. Requires Manage Server. Returns the resulting slot IDs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Optional reason recorded in the audit log. | |
| guild_id | Yes | Discord server (guild) ID (snowflake). | |
| afk_timeout | No | Seconds of inactivity before moving a member to AFK (60–3600). Discord rounds down to 60/300/900/1800/3600. | |
| afk_channel_id | No | Channel ID (snowflake), or null to clear the slot. The channel must be the right kind for the slot: voice for AFK, text or announcement for system/rules. | |
| rules_channel_id | No | Channel ID (snowflake), or null to clear the slot. The channel must be the right kind for the slot: voice for AFK, text or announcement for system/rules. | |
| system_channel_id | No | Channel ID (snowflake), or null to clear the slot. The channel must be the right kind for the slot: voice for AFK, text or announcement for system/rules. | |
| safety_alerts_channel_id | No | Channel ID (snowflake), or null to clear the slot. The channel must be the right kind for the slot: voice for AFK, text or announcement for system/rules. | |
| public_updates_channel_id | No | Channel ID (snowflake), or null to clear the slot. The channel must be the right kind for the slot: voice for AFK, text or announcement for system/rules. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| afk_timeout | Yes | ||
| afk_channel_id | Yes | ||
| rules_channel_id | Yes | ||
| system_channel_id | Yes | ||
| safety_alerts_channel_id | Yes | ||
| public_updates_channel_id | Yes |