Skip to main content
Glama
wowjinxy
by wowjinxy

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
NameRequiredDescriptionDefault
channel_idYes
message_idYes
emojisYes

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}"
        )]
  • 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"]
        }
    ),

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/wowjinxy/mcp-discord'

If you have feedback or need assistance with the MCP directory API, please join our Discord server