Skip to main content
Glama

discord_delete_channel

Remove a Discord channel by specifying its ID, with optional reason for audit logs.

Instructions

Delete a channel.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
channel_idYes
reasonNo

Implementation Reference

  • The handler logic for the 'discord_delete_channel' tool, which fetches the Discord channel and deletes it.
    case "discord_delete_channel": {
      const channel = await discord.channels.fetch(args.channel_id as string);
      if (!channel) throw new Error("Channel not found.");
      const channelName = "name" in channel ? channel.name : channel.id;
      await channel.delete(args.reason as string | undefined);
      return { content: [{ type: "text", text: `✅ Channel #${channelName} deleted.` }] };
    }
  • The tool definition and input schema for 'discord_delete_channel'.
    {
      name: "discord_delete_channel",
      description: "Delete a channel.",
      inputSchema: {
        type: "object",
        properties: {
          channel_id: { type: "string" },
          reason: { type: "string" },
        },
        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