delete_reaction
Remove an emoji reaction from a message by providing the message ID and reaction ID.
Instructions
[Official API] Remove an emoji reaction from a message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message_id | Yes | Message ID | |
| reaction_id | Yes | Reaction ID (from add_reaction response) |
Implementation Reference
- src/tools/messaging-bot.js:93-103 (schema)Schema definition for the 'delete_reaction' tool. Specifies input parameters: message_id (string, required) and reaction_id (string, required).
name: 'delete_reaction', description: '[Official API] Remove an emoji reaction from a message.', inputSchema: { type: 'object', properties: { message_id: { type: 'string', description: 'Message ID' }, reaction_id: { type: 'string', description: 'Reaction ID (from add_reaction response)' }, }, required: ['message_id', 'reaction_id'], }, }, - src/tools/messaging-bot.js:145-147 (handler)Handler function for 'delete_reaction' tool. Calls ctx.getOfficialClient().deleteReaction(args.message_id, args.reaction_id) and returns a text response indicating the reaction was removed.
async delete_reaction(args, ctx) { return text(`Reaction removed: ${(await ctx.getOfficialClient().deleteReaction(args.message_id, args.reaction_id)).deleted}`); }, - src/clients/official/im.js:201-209 (helper)Low-level client method deleteReaction that calls the Feishu IM API's messageReaction.delete endpoint with message_id and reaction_id, returning {deleted: true}.
async deleteReaction(messageId, reactionId) { await this._safeSDKCall( () => this.client.im.messageReaction.delete({ path: { message_id: messageId, reaction_id: reactionId }, }), 'deleteReaction' ); return { deleted: true }; }, - src/server.js:37-57 (registration)Tool registration infrastructure: TOOL_MODULES array includes messaging-bot module, TOOLS and HANDLERS are built by flattening all modules' schemas and handlers respectively.
const TOOL_MODULES = [ require('./tools/bitable'), require('./tools/calendar'), require('./tools/contacts'), require('./tools/diagnostics'), require('./tools/docs'), require('./tools/drive'), require('./tools/events'), require('./tools/groups'), require('./tools/im-read'), require('./tools/messaging-bot'), require('./tools/messaging-user'), require('./tools/okr'), require('./tools/profile'), require('./tools/tasks'), require('./tools/uploads'), require('./tools/wiki'), ]; const TOOLS = TOOL_MODULES.flatMap((m) => m.schemas); const HANDLERS = Object.fromEntries(TOOL_MODULES.flatMap((m) => Object.entries(m.handlers)));