discord_edit_channel
Modify Discord channel properties including name, topic, and slowmode settings to manage server organization and communication flow.
Instructions
Edit a channel's name, topic (text only) or slowmode (text only).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel_id | Yes | ||
| name | No | ||
| topic | No | ||
| slowmode | No | Slowmode in seconds (0 to disable). |
Implementation Reference
- src/tools/channels.ts:102-110 (handler)The handler implementation for discord_edit_channel, which fetches the channel and applies edits for name, topic, and slowmode.
case "discord_edit_channel": { const channel = await getGuildChannel(args.channel_id as string); const editOptions: Record<string, unknown> = {}; if (args.name !== undefined) editOptions.name = args.name as string; if (args.topic !== undefined && channel.type === ChannelType.GuildText) editOptions.topic = args.topic as string; if (args.slowmode !== undefined && channel.type === ChannelType.GuildText) editOptions.rateLimitPerUser = args.slowmode as number; await channel.edit(editOptions); return { content: [{ type: "text", text: `✅ Channel #${channel.name} updated.` }] }; } - src/tools/channels.ts:35-47 (schema)The JSON schema definition for the discord_edit_channel tool.
name: "discord_edit_channel", description: "Edit a channel's name, topic (text only) or slowmode (text only).", inputSchema: { type: "object", properties: { channel_id: { type: "string" }, name: { type: "string" }, topic: { type: "string" }, slowmode: { type: "number", description: "Slowmode in seconds (0 to disable)." }, }, required: ["channel_id"], }, },