Skip to main content
Glama

add_multiple_reactions

Add multiple emoji reactions to a Discord message simultaneously. Specify channel ID, message ID, and emoji array to react efficiently.

Instructions

Add multiple reactions to a message.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
channel_idYes
message_idYes
emojisYes

Implementation Reference

  • The core handler function that implements the logic for adding multiple reactions to a Discord message using the discord.py library.
    @staticmethod 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}" )]
  • The tool registration in the list_tools() function, including the name, description, and input schema for validation.
    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"] } ),
  • The input schema defining the parameters: channel_id, message_id, and list 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"] }
  • The routing registration where 'add_multiple_reactions' is listed in core_tool_names to dispatch to CoreToolHandlers.handle_add_multiple_reactions.
    "get_server_info", "list_servers", "get_channels", "list_members", "get_user_info", "send_message", "read_messages", "add_reaction", "add_multiple_reactions", "remove_reaction", "moderate_message", "create_text_channel", "delete_channel", "add_role", "remove_role" ]

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