tools.discord_react module

Add a reaction emoji to a Discord message.

async tools.discord_react.run(message_id, emoji, channel_id=None, ctx=None)[source]

Execute this tool and return the result.

Parameters:
  • message_id (str) – Unique identifier for the message.

  • emoji (str) – The emoji value.

  • channel_id (str | None) – Discord/Matrix channel identifier.

  • ctx (ToolContext | None) – Tool execution context providing access to bot internals.

Returns:

Result string.

Return type:

str