discord_add_reaction
Add emoji reactions to Discord messages using channel ID, message ID, and emoji parameters to express responses or engagement.
Instructions
Add a reaction emoji to a message.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel_id | Yes | ||
| message_id | Yes | ||
| emoji | Yes | Unicode emoji (e.g. '👍') or custom emoji in format 'name:id'. |
Implementation Reference
- src/tools/messages.ts:331-336 (handler)Handler for discord_add_reaction which fetches the message from the channel and adds the specified emoji reaction.
case "discord_add_reaction": { const channel = await getTextChannel(args.channel_id as string); const msg = await channel.messages.fetch(args.message_id as string); await msg.react(args.emoji as string); return { content: [{ type: "text", text: `✅ Reacted with ${args.emoji} to message ${msg.id} in #${channel.name}.` }] }; } - src/tools/messages.ts:58-69 (schema)Schema definition for discord_add_reaction tool.
name: "discord_add_reaction", description: "Add a reaction emoji to a message.", inputSchema: { type: "object", properties: { channel_id: { type: "string" }, message_id: { type: "string" }, emoji: { type: "string", description: "Unicode emoji (e.g. '👍') or custom emoji in format 'name:id'." }, }, required: ["channel_id", "message_id", "emoji"], }, },