add_multiple_reactions
Add multiple emoji reactions to a Discord message in one action using channel ID, message ID, and emoji array inputs.
Instructions
Add multiple reactions to a message.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel_id | Yes | ||
| message_id | Yes | ||
| emojis | Yes |
Implementation Reference
- The main handler function that executes the add_multiple_reactions tool by fetching the Discord channel and message, then iteratively adding each specified emoji as a reaction, and returning a confirmation message.async def handle_add_multiple_reactions(discord_client, arguments: Dict[str, Any]) -> List[TextContent]: """Add multiple reactions to a message""" channel = await discord_client.fetch_channel(int(arguments["channel_id"])) message = await channel.fetch_message(int(arguments["message_id"])) emojis = arguments["emojis"] for emoji in emojis: await message.add_reaction(emoji) return [TextContent( type="text", text=f"Added {len(emojis)} reactions ({', '.join(emojis)}) to message in #{channel.name}" )]
- src/discord_mcp/integrated_server.py:794-819 (registration)Registers the 'add_multiple_reactions' tool in the MCP server's list_tools() function, including the input schema defining required parameters: channel_id, message_id, and emojis array.Tool( name="add_multiple_reactions", description="Add multiple reactions to a message", inputSchema={ "type": "object", "properties": { "channel_id": { "type": "string", "description": "Channel containing the message" }, "message_id": { "type": "string", "description": "Message to react to" }, "emojis": { "type": "array", "items": { "type": "string", "description": "Emoji to react with (Unicode or custom emoji ID)" }, "description": "List of emojis to add as reactions" } }, "required": ["channel_id", "message_id", "emojis"] } ),