Skip to main content
Glama

discord_delete_message

Delete specific messages from Discord channels using channel and message IDs. Remove unwanted content or correct errors in your server.

Instructions

Delete a specific message from a channel.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
channel_idYes
message_idYes
reasonNo

Implementation Reference

  • The handler implementation for discord_delete_message that fetches the channel, retrieves the message, and deletes it.
    case "discord_delete_message": {
      const channel = await getTextChannel(args.channel_id as string);
      const msg = await channel.messages.fetch(args.message_id as string);
      await msg.delete();
      return { content: [{ type: "text", text: `✅ Message ${args.message_id} deleted.` }] };
    }
  • The MCP schema definition for discord_delete_message, specifying input requirements.
    {
      name: "discord_delete_message",
      description: "Delete a specific message from a channel.",
      inputSchema: {
        type: "object",
        properties: {
          channel_id: { type: "string" },
          message_id: { type: "string" },
          reason: { type: "string" },
        },
        required: ["channel_id", "message_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