# Discourse to Discord Webhook

**URL:** <https://meta.discourse.org/t/discourse-to-discord-webhook/55273>\
**Category:** Extras\
**Created:** [6 januari 2017 om 10:02 UTC](https://meta.discourse.org/t/discourse-to-discord-webhook/55273 "2017-01-06T10:02:45Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![thwright](https://avatars.discourse-cdn.com/v4/letter/t/e19b73/32.png) [@thwright](https://meta.discourse.org/u/thwright)\
**Post date:** [12 december 2017 om 14:33 UTC](https://meta.discourse.org/t/discourse-to-discord-webhook/55273/7 "2017-12-12T14:33:16Z")

</div>

I am getting this error when sending a ping or a new post is created. Any help with what is happening here?

I tried both a public and private channel; same response.

```plaintext
Status: 400

{"code": 50006, "message": "Cannot send an empty message"}

```

config.php

```plaintext
$discord_webhook_url = 'WEBHOOK_FROM_DISCORD';

$discord_embed_color = '#HEX_VALUE';

$discord_embed_thumbnail_url ='https://DOMAIN_NAME';

$discord_embed_footer_icon_url = $discord_embed_thumbnail_url;
$discord_embed_footer_text = 'CUSTOM_STRING';

$discord_embed_timestamp = true;

$discourse_payload_secret = 'RANDOMLY_GENERATED_STRING';

$discourse_url_protocol = 'https';

$discourse_url_domain = 'forums.domain.com';

$discourse_path = '/';

```

Discourse Settings

```plaintext
Payload URL = DISCORD_APP_WEBOOK_URL

Content Type = application/json

Secret = RANDOMLY_GENERATED_STRING #same as above

Events = All events, or, all individual events checked

Check TLS certificate of payload url = checked

Active = checked

```

---

_[View the full topic](https://meta.discourse.org/t/discourse-to-discord-webhook/55273)._
