Set channel permissions (admin)
discord_admin_set_permissionsAllow or deny channel permissions for a role or member, or clear an existing override, to control access for a specific channel or category.
Instructions
Allow or deny permissions for a role (name, ID or @everyone) or a member on one channel or category (channels synced to a category follow it). clear=true removes the override. Permission names: CREATE_INSTANT_INVITE, KICK_MEMBERS, BAN_MEMBERS, ADMINISTRATOR, MANAGE_CHANNELS, MANAGE_GUILD, ADD_REACTIONS, VIEW_AUDIT_LOG, PRIORITY_SPEAKER, STREAM, VIEW_CHANNEL, SEND_MESSAGES, SEND_TTS_MESSAGES, MANAGE_MESSAGES, EMBED_LINKS, ATTACH_FILES, READ_MESSAGE_HISTORY, MENTION_EVERYONE, USE_EXTERNAL_EMOJIS, CONNECT, SPEAK, MUTE_MEMBERS, DEAFEN_MEMBERS, MOVE_MEMBERS, USE_VAD, CHANGE_NICKNAME, MANAGE_NICKNAMES, MANAGE_ROLES, MANAGE_WEBHOOKS, MANAGE_GUILD_EXPRESSIONS, USE_APPLICATION_COMMANDS, MANAGE_EVENTS, MANAGE_THREADS, CREATE_PUBLIC_THREADS, CREATE_PRIVATE_THREADS, SEND_MESSAGES_IN_THREADS, MODERATE_MEMBERS.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"channel_id": "<channel_id>",
"target": "<target>"
},
"name": "discord_admin_set_permissions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deny | No | ||
| allow | No | ||
| clear | No | Remove this role/member's override instead | |
| reason | No | Reason, recorded in Discord's audit log | |
| target | Yes | Role name/ID, "@everyone", or a member's user ID | |
| channel_id | Yes | Channel or category ID | |
| target_type | No | role |