tools.discord_webhooks module

Discord webhook management and execution.

async tools.discord_webhooks.run(action, channel_id=None, webhook_id=None, webhook_url=None, name=None, content=None, username=None, avatar_url=None, embed_json=None, server_id=None, ctx=None)[source]

Execute this tool and return the result.

Parameters:
  • action (str) – The action value.

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

  • webhook_id (str | None) – The webhook id value.

  • webhook_url (str | None) – The webhook url value.

  • name (str | None) – Human-readable name.

  • content (str | None) – Content data.

  • username (str | None) – The username value.

  • avatar_url (str | None) – The avatar url value.

  • embed_json (str | None) – The embed json value.

  • server_id (str | None) – The server id value.

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

Returns:

Result string.

Return type:

str