Skip to main content
Glama
hanweg

mcp-discord

by hanweg

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
NameRequiredDescriptionDefault
channel_idYesChannel containing the message
emojisYesList of emojis to add as reactions
message_idYesMessage to react to

Implementation Reference

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

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

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