tools.discord_edit_message module

Edit a Discord message previously sent by the bot.

async tools.discord_edit_message.run(message_id, new_content, channel_id=None, ctx=None)[source]

Execute this tool and return the result.

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

  • new_content (str) – The new content 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