discord_unban_member
Remove a user's ban from a Discord server by providing guild and user IDs, enabling moderation actions to restore access.
Instructions
Unban a user from a guild.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guild_id | Yes | ||
| user_id | Yes | ||
| reason | No |
Implementation Reference
- src/tools/members.ts:138-142 (handler)Handler implementation for "discord_unban_member" which unbans a member from a Discord guild.
case "discord_unban_member": { const guild = await discord.guilds.fetch(validateId(args.guild_id, "guild_id")); await guild.members.unban(args.user_id as string, args.reason as string | undefined); return { content: [{ type: "text", text: `✅ User ${args.user_id} has been unbanned.` }] }; } - src/tools/members.ts:58-70 (schema)Schema definition for "discord_unban_member" tool.
{ name: "discord_unban_member", description: "Unban a user from a guild.", inputSchema: { type: "object", properties: { guild_id: { type: "string" }, user_id: { type: "string" }, reason: { type: "string" }, }, required: ["guild_id", "user_id"], }, },