# Use Discord to receive messages

> Formspree Docs · Using the CLI · Updated July 14, 2023

The **send message** action sends messages to a Discord channel. Under the hood, this action calls the webhook API endpoint.

Adding the **send message** action in the `formspree.json` file has the same effect as adding the Discord plugin in the Formspree dashboard. See the [Discord plugin help article](/articles/plugins/send-discord-notifications/) for more information. 

## Formspree.json configuration

| Key | Type | Description |
| --- | --- | --- |
| `app` |  String |  Must be `discord`  |
| `type` |  String |  Must be `sendMessage` |
| `webhookURL` |  String |  The channel webhook URL. Please check the [Discord plugin help article](/articles/plugins/send-discord-notifications/) or the [official Discord docs](https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks) about it. |

**Example**

```javascript
{
  "forms": {
    "contact": {
      "name": "Contact Form",
      "actions": [
        {
          "app": "discord",
          "type": "sendMessage",
          "webhookURL": "$DISCORD_WEBHOOK_URL",
        }
      ]
    }
  }
}
```

## Validation rules

No validation rules are implicitly configured.
