Skip to content

channels_modify_permissions

Category: channels

Create or replace a permission overwrite for a role or user on a channel.

  • Restrict a channel to a specific role; allow a moderator to manage messages.
  • Removing the overwrite entirely → use channels_delete_permissions.
FieldTypeRequiredDescription
channel_idstringyesChannel whose overwrite is being set
overwrite_idstringyesRole ID or user ID receiving the overwrite
typeunknownyes0 = role, 1 = member
allowstringnoPermission bitfield to allow (string of integer bits)
denystringnoPermission bitfield to deny (string of integer bits)
audit_reasonstringnoReason recorded in audit log (X-Audit-Log-Reason header)

\{updated, channel_id, overwrite_id\}.

FieldTypeRequiredDescription
updatedbooleanyes
channel_idstringyesDiscord channel ID (snowflake)
overwrite_idstringyes
PropertyValue
Read-onlyno
Destructiveno
Idempotentyes
Open-worldyes
Confirmation requiredno

packages/mcp-core/src/tools/channels/modify_permissions.ts