# Set up Discord notifications with the discourse-chat-integration plugin

**URL:** https://meta.discourse.org/t/set-up-discord-notifications-with-the-discourse-chat-integration-plugin/66600
**Category:** Integrations
**Tags:** chat-integration, how-to
**Created:** [July 21, 2017, 3:04pm UTC](https://meta.discourse.org/t/set-up-discord-notifications-with-the-discourse-chat-integration-plugin/66600 "2017-07-21T15:04:04Z")
**Posts on this page:** 20
**Page:** 3

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [September 22, 2020, 12:23am UTC](https://meta.discourse.org/t/set-up-discord-notifications-with-the-discourse-chat-integration-plugin/66600/50 "2020-09-22T00:23:06Z")

</div>

Can you try refreshing the page? A refresh will be required after enabling the plugin.

---

<div class="post-metadata">

### Author: ![Doniel\_Zoldan1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/doniel_zoldan1/32/160174_2.png) [@Doniel\_Zoldan1](https://meta.discourse.org/u/Doniel_Zoldan1)
#### Post date: [September 22, 2020, 12:42am UTC](https://meta.discourse.org/t/set-up-discord-notifications-with-the-discourse-chat-integration-plugin/66600/51 "2020-09-22T00:42:57Z")

</div>

I see it now, thanks!

---

<div class="post-metadata">

### Author: ![Darthmoll\_Amatin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darthmoll_amatin/32/197532_2.png) [@Darthmoll\_Amatin](https://meta.discourse.org/u/Darthmoll_Amatin)
#### Post date: [October 20, 2020, 5:03pm UTC](https://meta.discourse.org/t/set-up-discord-notifications-with-the-discourse-chat-integration-plugin/66600/52 "2020-10-20T17:03:51Z")

</div>

he guys. getting a error setting up this plugin with discord. channel created. webhook setup with the plugin.

now i get the next error.

> **[Screenshot](https://prnt.sc/v38b42)**
>
> Captured with Lightshot

and when i send a test. i get this error.

> **[Screenshot](https://prnt.sc/v38bk4)**
>
> Captured with Lightshot

and the logs give me this.

> **[Screenshot](https://prnt.sc/v38czm)**
>
> Captured with Lightshot

any help would be appreciated.

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [October 20, 2020, 6:31pm UTC](https://meta.discourse.org/t/set-up-discord-notifications-with-the-discourse-chat-integration-plugin/66600/53 "2020-10-20T18:31:17Z")

</div>

> [@Darthmoll\_Amatin](#):
>
> and the logs give me this.

Can you share the contents of the “info” tab for this? If you can copy/paste, that would be great - it’s hard to read logs in a screenshot.

---

<div class="post-metadata">

### Author: ![Darthmoll\_Amatin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darthmoll_amatin/32/197532_2.png) [@Darthmoll\_Amatin](https://meta.discourse.org/u/Darthmoll_Amatin)
#### Post date: [October 23, 2020, 6:33pm UTC](https://meta.discourse.org/t/set-up-discord-notifications-with-the-discourse-chat-integration-plugin/66600/54 "2020-10-23T18:33:09Z")

</div>

Message (2 copies reported)

```plaintext
Test provider failed {:error_key=>nil, :message=>{:content=>"", :embeds=>[{:title=>"FAYN Rule Book [Alliance/Announcements] ", :color=>12525102, :description=>"[image] \nFAYN is a group of Corporations working together as a collective to grow both the individual and the group within this set of guidelines and rules. \nAdministration Tools\nAs part of FAYN you are required to have ALL of your characters, however insignificant linked to your main character on SeAT This is part of the recruitment requirements and supports the ongoing management of our corp...", :url=>"https://forum.darksideoftheeclipse.co.uk/t/fayn-rule-book/45/1", :author=>{:name=>"@PJHustle", :url=>"https://forum.darksideoftheeclipse.co.uk/u/PJHustle", :icon_url=>"https://forum.darksideoftheeclipse.co.uk/user_avatar/forum.darksideoftheeclipse.co.uk/pjhustle/45/4_2.png"}}]}, :response_body=>"<html>\r\n<head><title>403 Forbidden</title></head>\r\n<body>\r\n<center><h1>403 Forbidden</h1></center>\r\n<hr><center>cloudflare</center>\r\n</body>\r\n</html>\r\n"}

Backtrace

/var/www/discourse/plugins/discourse-chat-integration/app/controllers/chat_controller.rb:43:in `rescue in test'
/var/www/discourse/plugins/discourse-chat-integration/app/controllers/chat_controller.rb:22:in `test'
actionpack-6.0.3.3/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
actionpack-6.0.3.3/lib/abstract_controller/base.rb:195:in `process_action'
actionpack-6.0.3.3/lib/action_controller/metal/rendering.rb:30:in `process_action'
actionpack-6.0.3.3/lib/abstract_controller/callbacks.rb:42:in `block in process_action'
activesupport-6.0.3.3/lib/active_support/callbacks.rb:112:in `block in run_callbacks'
/var/www/discourse/app/controllers/application_controller.rb:354:in `block in with_resolved_locale'
i18n-1.8.5/lib/i18n.rb:313:in `with_locale'
/var/www/discourse/app/controllers/application_controller.rb:354:in `with_resolved_locale'

Env

HTTP HOSTS: forum.darksideoftheeclipse.co.uk
```

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [October 24, 2020, 12:41pm UTC](https://meta.discourse.org/t/set-up-discord-notifications-with-the-discourse-chat-integration-plugin/66600/55 "2020-10-24T12:41:42Z")

</div>

> [@Darthmoll\_Amatin](#):
>
> `response_body=>"<html>\r\n<head><title>403 Forbidden ... <center>cloudflare</center>`

First resort should be to contact Discord support with this information and ask why this is happening.

---

<div class="post-metadata">

### Author: ![Darthmoll\_Amatin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darthmoll_amatin/32/197532_2.png) [@Darthmoll\_Amatin](https://meta.discourse.org/u/Darthmoll_Amatin)
#### Post date: [October 24, 2020, 4:45pm UTC](https://meta.discourse.org/t/set-up-discord-notifications-with-the-discourse-chat-integration-plugin/66600/56 "2020-10-24T16:45:52Z")

</div>

yeah maybe. but i will pass. i am not a dev. and have no clue what to do or what to ask. i dont understand much about this. just posting this as it used to work. now it doesnt.

maybe cause discord is changing stuff ? no idea.  
i have a feeling i wont be the only one getting this issue soon.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [October 25, 2020, 12:11am UTC](https://meta.discourse.org/t/set-up-discord-notifications-with-the-discourse-chat-integration-plugin/66600/57 "2020-10-25T00:11:45Z")

</div>

It is helpful to share, we’re just pointing out that based on the data it _looks_ like the problem is on Discord’s side. We can’t control that.

---

<div class="post-metadata">

### Author: ![Darthmoll\_Amatin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darthmoll_amatin/32/197532_2.png) [@Darthmoll\_Amatin](https://meta.discourse.org/u/Darthmoll_Amatin)
#### Post date: [October 25, 2020, 7:49am UTC](https://meta.discourse.org/t/set-up-discord-notifications-with-the-discourse-chat-integration-plugin/66600/58 "2020-10-25T07:49:22Z")

</div>

i found the issue.

the discord webhook has changed from [discordapp.com](http://discordapp.com) to [discord.com](http://discord.com)  
when i altered the webhook from [discord.com](http://discord.com) to [discordapp.com](http://discordapp.com) it started to work.

so for now its working. i send a ticket to discord support with this issue.  
but not sure where the issue lies right now. discord or the app?

edit: the webhook url on discourse i altered.

---

<div class="post-metadata">

### Author: ![gcharang](https://avatars.discourse-cdn.com/v4/letter/g/ac91a4/32.png) [@gcharang](https://meta.discourse.org/u/gcharang)
#### Post date: [December 12, 2020, 6:20pm UTC](https://meta.discourse.org/t/set-up-discord-notifications-with-the-discourse-chat-integration-plugin/66600/60 "2020-12-12T18:20:17Z")

</div>

thanks for posting the solution. I was going mad trying to debug this.

---

<div class="post-metadata">

### Author: ![Yechan\_Kim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yechan_kim/32/204050_2.png) [@Yechan\_Kim](https://meta.discourse.org/u/Yechan_Kim)
#### Post date: [December 22, 2020, 7:38am UTC](https://meta.discourse.org/t/set-up-discord-notifications-with-the-discourse-chat-integration-plugin/66600/61 "2020-12-22T07:38:41Z")

</div>

Hi there.

I’m having the same issue either. Seeing `DiscourseChat::ProviderError` message when I click `test` at `Plugins` - `Chat integrations`, and getting `403 forbidden` from the Discord Webhook URL.

Any hint to fix it?

---

<div class="post-metadata">

### Author: ![odysseywestra](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/odysseywestra/32/121113_2.png) [@odysseywestra](https://meta.discourse.org/u/odysseywestra)
#### Post date: [December 23, 2020, 8:17am UTC](https://meta.discourse.org/t/set-up-discord-notifications-with-the-discourse-chat-integration-plugin/66600/62 "2020-12-23T08:17:41Z")

</div>

> [@Darthmoll\_Amatin](#):
>
> the discord webhook has changed from [discordapp.com](http://discordapp.com) to [discord.com](http://discord.com)  
> when i altered the webhook from [discord.com](http://discord.com) to [discordapp.com](http://discordapp.com) it started to work.

You still need to alter your webhook url to use [discordapp.com](http://discordapp.com) domain instead of [discord.com](http://discord.com).

---

<div class="post-metadata">

### Author: ![Yechan\_Kim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yechan_kim/32/204050_2.png) [@Yechan\_Kim](https://meta.discourse.org/u/Yechan_Kim)
#### Post date: [December 24, 2020, 7:17am UTC](https://meta.discourse.org/t/set-up-discord-notifications-with-the-discourse-chat-integration-plugin/66600/63 "2020-12-24T07:17:07Z")

</div>

Hey. That solved my issue. Thanks.

I think the plugin itself should support the new API domain form on a new update too.

---

<div class="post-metadata">

### Author: ![AquaL1te](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aqual1te/32/201966_2.png) [@AquaL1te](https://meta.discourse.org/u/AquaL1te)
#### Post date: [June 3, 2021, 5:28am UTC](https://meta.discourse.org/t/set-up-discord-notifications-with-the-discourse-chat-integration-plugin/66600/64 "2021-06-03T05:28:58Z")

</div>

Awesome, this fixed it for me as well.

---

<div class="post-metadata">

### Author: ![EddieT](https://avatars.discourse-cdn.com/v4/letter/e/f4b2a3/32.png) [@EddieT](https://meta.discourse.org/u/EddieT)
#### Post date: [August 3, 2021, 10:47pm UTC](https://meta.discourse.org/t/set-up-discord-notifications-with-the-discourse-chat-integration-plugin/66600/65 "2021-08-03T22:47:00Z")

</div>

![image](https://global.discourse-cdn.com/meta/original/3X/a/1/a164705a44044792b7a9da26ff0a15bd7d2e3a5b.png)  
I’m getting these errors in the console and the plugin channel thing isn’t loading, is it because of a theme and do I need to disable it?

---

<div class="post-metadata">

### Author: ![satonotdead](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/satonotdead/32/447830_2.png) [@satonotdead](https://meta.discourse.org/u/satonotdead)
#### Post date: [August 23, 2021, 5:24am UTC](https://meta.discourse.org/t/set-up-discord-notifications-with-the-discourse-chat-integration-plugin/66600/66 "2021-08-23T05:24:24Z")

</div>

You need to check your server config and it changes if you are in Apache or Nginx. [You can search](https://duckduckgo.com/?q=because+it+violates+the+following+content+security&ia=web) that message 🤟

On topic, could be possible to **add thumbnails** and **reduce** the message quoted in Discord? It’s very long and breaks our chat 😐

BTW thanks for your (all community) work, as always!

---

<div class="post-metadata">

### Author: ![valsha](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/valsha/32/230631_2.png) [@valsha](https://meta.discourse.org/u/valsha)
#### Post date: [September 5, 2021, 6:20am UTC](https://meta.discourse.org/t/set-up-discord-notifications-with-the-discourse-chat-integration-plugin/66600/70 "2021-09-05T06:20:20Z")

</div>

There was such an error in the log:

```plaintext
/var/www/discourse/plugins/discourse-chat-integration/app/controllers/chat_controller.rb:43:in `rescue in test'
/var/www/discourse/plugins/discourse-chat-integration/app/controllers/chat_controller.rb:22:in `test'
actionpack-6.1.4.1/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
actionpack-6.1.4.1/lib/abstract_controller/base.rb:228:in `process_action'
actionpack-6.1.4.1/lib/action_controller/metal/rendering.rb:30:in `process_action'
actionpack-6.1.4.1/lib/abstract_controller/callbacks.rb:42:in `block in process_action'
activesupport-6.1.4.1/lib/active_support/callbacks.rb:117:in `block in run_callbacks'
/var/www/discourse/app/controllers/application_controller.rb:397:in `block in with_resolved_locale'
i18n-1.8.10/lib/i18n.rb:314:in `with_locale'
/var/www/discourse/app/controllers/application_controller.rb:397:in `with_resolved_locale'

```

i just change webhook url from [discord.com](http://discord.com) to [discordapp.com](http://discordapp.com) and all is OK 👍

---

<div class="post-metadata">

### Author: ![skatefriday](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/skatefriday/32/237185_2.png) [@skatefriday](https://meta.discourse.org/u/skatefriday)
#### Post date: [October 24, 2021, 8:04pm UTC](https://meta.discourse.org/t/set-up-discord-notifications-with-the-discourse-chat-integration-plugin/66600/71 "2021-10-24T20:04:18Z")

</div>

My initial motivation for looking for a discourse to discord integration was to inject flagged posts into discord for quicker notification and review among a team of people. The stock plugin does not support this. So, injecting flagged posts into discord is now supported [here](https://github.com/cmacfarl/discourse-chat-integration/tree/flagged-posts)

Note that there’s probably a more Ruby-esque way to do this, and perhaps on(:reviewable) should use a queue specific to reviewables, and passing around the flagged boolean is a bit of a hack, and perhaps there’s other more generic things to do with a reviewable, but works for my purposes.

Proceed with caution: I don’t plan to try to upstream this as I have no plans to support anything other than discord, and no plans to spend more time on any of the other issues for improvement identified above.

Ends up looking like this…

 ![image](https://global.discourse-cdn.com/meta/original/3X/6/9/69178b06ce948cf4fe429b19f27b78d7944c8b3f.png)

---

<div class="post-metadata">

### Author: ![Alexis](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@Alexis](https://meta.discourse.org/u/Alexis)
#### Post date: [December 14, 2022, 2:44pm UTC](https://meta.discourse.org/t/set-up-discord-notifications-with-the-discourse-chat-integration-plugin/66600/72 "2022-12-14T14:44:54Z")

</div>

Hey everyone.  
Webhook with Discord is working properly … except the message content is empty. The discourse topic/reply is not displayed on the Discord server.

If I include a ’ chat integration discord message content’, this part is well included though.

Thank you,

---

<div class="post-metadata">

### Author: ![juiceer](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@juiceer](https://meta.discourse.org/u/juiceer)
#### Post date: [February 11, 2023, 8:22pm UTC](https://meta.discourse.org/t/set-up-discord-notifications-with-the-discourse-chat-integration-plugin/66600/73 "2023-02-11T20:22:42Z")

</div>

I got it working, finally, through some trial and error. For those who come behind me…

These instructions say:

⚠ **NOTE** : If you receive an error when using the webhook, ensure the domain name is `discordapp.com` instead of `discord.com` .

When I copied my webhook from Discord, it was in the following format. [https://discordapp.com/api/webhooks/xxx/yyy-zzz-aaa](https://discordapp.com/api/webhooks/xxx/yyy-zzz-aaa)

so, the instructions above **are** consistent with the url that discord provides

The trouble comes when following the instructions. The plugin settings reject the url scheme that is documented, and accept the URL scheme that is prohibited. It’s like somewhere in the code the “!” was missing.

Fortunately, the webhook url works when I use the second address, as shown in the screenshot below.

 ![image](https://global.discourse-cdn.com/meta/original/4X/7/3/3/733527c1facdb4b0026c64fbec9c97036f26b0eb.png)

So a few suggestions that could clear up this issue, for the next guy who might not do as much trial-and-error as I did:

1. Update the validator to have “[discordapp.com](http://discordapp.com)” pass and “[discord.com](http://discord.com)” fail
2. Update the validator to have both “[discordapp.com](http://discordapp.com)” and “[discord.com](http://discord.com)” pass
3. update the verbiage in the instructions to not have that contradictory note.

Bonus suggestions,  
under the “ **Setup Discourse** ” setting:  
Step 0: after installing the plugin, enable the plugin  
step 1: _provide a screenshot_  
step 3: _provide a screenshot_

I am a little worried that discord will stop supporting the “wrong” scheme that I’m currently using, so I would like it if Discourse could fix this so that I don’t have to use the workaround before discord breaks my alternate URL.

[Previous page](https://meta.discourse.org/t/set-up-discord-notifications-with-the-discourse-chat-integration-plugin/66600.md?page=2)

[Next page](https://meta.discourse.org/t/set-up-discord-notifications-with-the-discourse-chat-integration-plugin/66600.md?page=4)
