Skip to main content
Glama

discord_set_member_permission

Modify individual member permissions for a Discord channel by allowing or denying specific access rights to control user interactions.

Instructions

Allow or deny specific permissions for a single member on a channel.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
channel_idYes
user_idYes
allowNo
denyNo
reasonNo

Implementation Reference

  • The handler logic for "discord_set_member_permission" which updates channel permission overwrites for a specific member using discord.js.
    case "discord_set_member_permission": {
      const channel = await getGuildChannel(args.channel_id as string);
      const options: PermissionOverwriteOptions = {};
      parsePermArray(args.allow).forEach((p) => { (options as Record<string, boolean>)[p] = true; });
      parsePermArray(args.deny).forEach((p) => { (options as Record<string, boolean>)[p] = false; });
      await channel.permissionOverwrites.edit(args.user_id as string, options, { reason: args.reason as string | undefined });
      return { content: [{ type: "text", text: `✅ Permissions updated for member ${args.user_id} on #${channel.name}.` }] };
    }
  • The tool definition schema for "discord_set_member_permission".
      name: "discord_set_member_permission",
      description: "Allow or deny specific permissions for a single member on a channel.",
      inputSchema: {
        type: "object",
        properties: {
          channel_id: { type: "string" },
          user_id: { type: "string" },
          allow: { type: "array", items: { type: "string" } },
          deny: { type: "array", items: { type: "string" } },
          reason: { type: "string" },
        },
        required: ["channel_id", "user_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