Discord icon

Discord

Interact with Discord API - users, messages, webhooks, guilds, interactions, and more

Actions193

Channel → Edit Channel Permissions

AI-generated

Summary

Updates a role or member’s permission overwrite for a Discord channel. Choose the channel, overwrite target ID and target type, then set allowed and denied permissions using the flags or bitfield strings.

Inputs

  • Authentication — Select Bot Token or OAuth2 (User Token); defaults to Bot Token.
  • Channel (required) — Discord channel snowflake ID.
  • Overwrite ID (required) — Snowflake ID of the role or member whose channel permissions to update.
  • Allow Permissions / Allow — Grant permissions with the Allow Permissions flags or provide a Discord permission bitfield string in Allow. A nonempty Allow bitfield string takes precedence over the flags.
  • Deny Permissions / Deny — Deny permissions with the Deny Permissions flags or provide a Discord permission bitfield string in Deny. A nonempty Deny bitfield string takes precedence over the flags.
  • Type (required) — Choose Role (0) or Member (1) for the overwrite target.
  • Audit Log Reason — Optional reason recorded in the Discord guild audit log; Discord limits this header to 512 characters.
  • Request Options — Optional batching, SSL certificate, proxy, and timeout settings for requests.

Output shape

A single Discord channel permission overwrite response.

The operation updates the overwrite for the specified role or member in the selected channel. Permission flag selections are ignored when their corresponding bitfield string is set.

Links

Discussion