Edit a channel
edit_channelUse this when the user wants to rename a channel, change its topic, age restriction or slow mode, or move it to another category or to the top or bottom. Do not use for channel permissions; use set_channel_permissions. Adds the change to the pending card for this server; nothing changes on Discord until apply_card.
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": {
"guild_id": "<guild_id>",
"channel": "<channel>"
},
"name": "edit_channel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nsfw | No | Age-restricted channel. | |
| topic | No | New topic (null removes it). | |
| channel | Yes | The channel name. | |
| category | No | Move to this category (null: no category). | |
| guild_id | Yes | Discord server ID, as returned by list_my_servers. | |
| new_name | No | New name. | |
| position | No | Place at the top or bottom of its category. | |
| slowmode_seconds | No | Slow mode, 0 to 21600 seconds (0 turns it off). |