⌘I

Use Discord to receive messages

Updated July 14, 2023 ·
pluginsformspree-clidiscord
Also available in:

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 for more information. 

Formspree.json configuration

KeyTypeDescription
app String Must be discord 
type String Must be sendMessage
webhookURL String The channel webhook URL. Please check the Discord plugin help article or the official Discord docs about it.

Example

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

Validation rules

No validation rules are implicitly configured.

Still have questions? or .