add_multiple_reactions
Add multiple emoji reactions to a specific message in a Discord channel by providing the channel ID, message ID, and a list of emojis.
Instructions
Add multiple reactions to a message
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel_id | Yes | Channel containing the message | |
| emojis | Yes | List of emojis to add as reactions | |
| message_id | Yes | Message to react to |
Implementation Reference
- src/discord_mcp/server.py:575-583 (handler)The handler logic for the 'add_multiple_reactions' tool. It fetches the channel and message using Discord client, loops through the list of emojis, adds each reaction, and returns a confirmation message.elif name == "add_multiple_reactions": channel = await discord_client.fetch_channel(int(arguments["channel_id"])) message = await channel.fetch_message(int(arguments["message_id"])) for emoji in arguments["emojis"]: await message.add_reaction(emoji) return [TextContent( type="text", text=f"Added reactions: {', '.join(arguments['emojis'])} to message" )]
- src/discord_mcp/server.py:227-252 (registration)Registration of the 'add_multiple_reactions' tool in the list_tools() function, including its name, description, and input schema definition.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"] } ),
- src/discord_mcp/server.py:230-251 (schema)Input schema for the 'add_multiple_reactions' tool, defining parameters: channel_id, message_id, and array of emojis.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"] }