Skip to main content
Glama

discord_kick_member

Remove a member from a Discord server using guild and user IDs. Specify a reason for the moderation action when needed.

Instructions

Kick a member from a guild.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
guild_idYes
user_idYes
reasonNo

Implementation Reference

  • The handler for the discord_kick_member tool, which fetches the guild member and kicks them using the discord.js library.
    case "discord_kick_member": {
      const guild = await discord.guilds.fetch(validateId(args.guild_id, "guild_id"));
      const member = await guild.members.fetch(args.user_id as string);
      await member.kick(args.reason as string | undefined);
      return { content: [{ type: "text", text: `✅ ${member.user.tag} has been kicked.` }] };
    }
  • The schema definition for the discord_kick_member tool, specifying input arguments.
      name: "discord_kick_member",
      description: "Kick a member from a guild.",
      inputSchema: {
        type: "object",
        properties: {
          guild_id: { type: "string" },
          user_id: { type: "string" },
          reason: { type: "string" },
        },
        required: ["guild_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