tools.discord_delete_message module

Delete a Discord message previously sent by the bot.

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

Execute this tool and return the result.

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

  • 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