Set channel permissions
set_channel_permissionsSet or replace permission overwrites for a role or member on a Discord channel to control access, such as denying @everyone view and allowing specific roles.
Instructions
Set the permission overwrite for a role or member on a channel. REPLACES any existing overwrite for that target on that channel. The standard private-channel pattern: deny VIEW_CHANNEL for the guild's @everyone role (target_id = guild id, target_type = role) and allow VIEW_CHANNEL for the roles that should see it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deny | No | ||
| allow | No | ||
| target_id | Yes | Role id or member id. The @everyone role id equals the guild id. | |
| channel_id | Yes | ||
| target_type | Yes |