Skip to main content
Glama

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
NameRequiredDescriptionDefault
channel_idYes
nameNo
topicNo
slowmodeNoSlowmode in seconds (0 to disable).

Implementation Reference

  • 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.` }] };
    }
  • 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"],
      },
    },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/PaSympa/discord-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server