tools.discord_embed module

Create and send a Discord Embed to a channel.

async tools.discord_embed.run(channel_id, embed_spec, content=None, ctx=None)[source]

Execute this tool and return the result.

Parameters:
  • channel_id (str) – Discord/Matrix channel identifier.

  • embed_spec (str) – The embed spec value.

  • content (str | None) – Content data.

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

Returns:

Result string.

Return type:

str