> ## Documentation Index
> Fetch the complete documentation index at: https://docs.b3os.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Send Discord Message

Send a message to a Discord channel via webhook. Use this to post alerts, notifications, or updates to Discord servers. Max 2000 characters. Supports custom bot username. Ideal for: price alerts, trade notifications, portfolio updates, community announcements.

![Send Discord Message logo](https://ai-icon.b3.fun/logo/discord)
Catalog action Messaging discord

Send a message to a Discord channel via webhook. Use this to post alerts, notifications, or updates to Discord servers. Max 2000 characters. Supports custom bot username. Ideal for: price alerts, trade notifications, portfolio updates, community announcements.


## At a Glance

| Field | Value |
| --- | --- |
| Action ID | `send-discord-message` |
| Category | Messaging |
| Connector | `discord` |
| Requires gas | No |
| Funds movement | None declared |
| Tags | `messaging`, `discord`, `notification`, `webhook`, `alert`, `write`, `chat`, `community` |

## Payload Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `message` | `string` | Yes | Message text to send. Supports Markdown: **bold**, _italic_, 'code', links. Max 2000 characters. |

## Result Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `status` | `string` | Yes | - |
| `error` | `string` | No | Error message if failed |

## Examples

**Workflow node**

```json
{
  "type": "send-discord-message",
  "payload": {
    "message": "Workflow completed"
  },
  "children": [],
  "connector": {
    "type": "discord",
    "id": "conn_discord"
  }
}
```
  **Test with API**

```bash
curl -X POST "https://api.b3os.org/v1/actions/send-discord-message/test" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "inputs": {
    "message": "Workflow completed"
  }
}'
```

**Use expressions for dynamic values**

Payload fields can use workflow expressions such as `{{$trigger.body.amount}}`, `{{$nodes.fetch.result.price}}`, and `{{$props.asset}}` when the value should come from a trigger, prior node, or reusable workflow prop.