remove_reaction
Remove specific emoji reactions from Discord messages by specifying the channel, message ID, and emoji. Simplify reaction management on the mcp-discord server.
Instructions
Remove a reaction from a message
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel_id | Yes | Channel containing the message | |
| emoji | Yes | Emoji to remove (Unicode or custom emoji ID) | |
| message_id | Yes | Message to remove reaction from |
Implementation Reference
- src/discord_mcp/server.py:585-592 (handler)Handler implementation for the 'remove_reaction' tool. Fetches the specified channel and message, then removes the specified reaction added by the bot user, returning a success confirmation.elif name == "remove_reaction": channel = await discord_client.fetch_channel(int(arguments["channel_id"])) message = await channel.fetch_message(int(arguments["message_id"])) await message.remove_reaction(arguments["emoji"], discord_client.user) return [TextContent( type="text", text=f"Removed reaction {arguments['emoji']} from message" )]
- src/discord_mcp/server.py:253-274 (registration)Registration of the 'remove_reaction' tool in the list_tools() function, including its name, description, and input schema definition.Tool( name="remove_reaction", description="Remove a reaction from a message", inputSchema={ "type": "object", "properties": { "channel_id": { "type": "string", "description": "Channel containing the message" }, "message_id": { "type": "string", "description": "Message to remove reaction from" }, "emoji": { "type": "string", "description": "Emoji to remove (Unicode or custom emoji ID)" } }, "required": ["channel_id", "message_id", "emoji"] } ),