# Community node - Discord Trigger / Send

**URL:** <https://community.n8n.io/t/community-node-discord-trigger-send/18896>\
**Category:** Built with n8n\
**Tags:** node\
**Created:** [October 20, 2022, 6:51pm UTC](https://community.n8n.io/t/community-node-discord-trigger-send/18896 "2022-10-20T18:51:37Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![hckdotng](https://avatars.discourse-cdn.com/v4/letter/h/f14d63/32.png) [@hckdotng](https://community.n8n.io/u/hckdotng)\
**Post date:** [October 20, 2022, 6:51pm UTC](https://community.n8n.io/t/community-node-discord-trigger-send/18896/1 "2022-10-20T18:51:37Z")

</div>

Hey,

This is my second node, in fact this is a collection of two nodes. The first is a Discord trigger, to listen to channels and run workflows if it matches certain conditions. The second is kind of the same as the official one, instead it doesn’t rely on a webhook but on a Discord bot integrated with it. This node also have special features like the ability to send interactive dialogs (using buttons, select), waiting an answer to continue the workflow.

Technically it’s a bit tricky, I have a lot of parent-child process communications (between the bot and the node executions), so probably lot of bugs to catch at this early stage. But if you give it a try don’t hesitate to ask for help or report any problem 🙂

> **[n8n-nodes-discord](https://www.npmjs.com/package/n8n-nodes-discord)**
>
> nodes to trigger workflows from Discord or send interactive messages. Uses the components API which allows to create dialogs (e.g. attach buttons and wait for the user to click on them). Latest version: 0.1.0, last published: 16 minutes ago. Start...

---

<div class="post-metadata">

**Author:** ![bees8](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@bees8](https://community.n8n.io/u/bees8)\
**Post date:** [March 6, 2023, 11:00am UTC](https://community.n8n.io/t/community-node-discord-trigger-send/18896/2 "2023-03-06T11:00:38Z")

</div>

@hckdotng this is absolutely amazing - why isn’t this topic full of admirations of your work? lol  
I was completely lost with integrating discord into n8n (Either had to use polling, or some other kind of solution), but what you created is brilliant.

What would you say the limitations are of this node? Is there also a way to register more commands? (other than the ones that are included like /test)  
@Jon @MutedJam Hope you guys tried this out as well - working really well.

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [March 6, 2023, 1:50pm UTC](https://community.n8n.io/t/community-node-discord-trigger-send/18896/3 "2023-03-06T13:50:02Z")

</div>

Hey @bees8,

This one is not a node I have tried myself there are a bunch of nodes and keeping up with them can be tricky 🙂

We do however currently have our internal overhaul of the Discord node in progress although I have not looked at that yet either to see what is included.

---

<div class="post-metadata">

**Author:** ![bees8](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@bees8](https://community.n8n.io/u/bees8)\
**Post date:** [March 8, 2023, 11:14am UTC](https://community.n8n.io/t/community-node-discord-trigger-send/18896/4 "2023-03-08T11:14:35Z")

</div>

Would be very cool to see a discord node overhaul!  
Discord has been one of the integrations I’ve been struggling the most with (apart from the Twitter CRC check [CRC Twitter response challenge - Built with n8n - n8n](http://community.n8n.io/t/crc-twitter-response-challenge/21442) ), the only way to get discord to trigger is through polling. Would be amazing to have a native node like @hckdotng did (maybe you can use his/hers 😉 )

---

<div class="post-metadata">

**Author:** ![soulphforum](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/soulphforum/32/20154_2.png) [@soulphforum](https://community.n8n.io/u/soulphforum)\
**Post date:** [April 25, 2023, 6:16pm UTC](https://community.n8n.io/t/community-node-discord-trigger-send/18896/5 "2023-04-25T18:16:22Z")

</div>

Is anyone else having node issues when someone presses the buttons with the latest versions of n8n?

It used to work not sure what happened

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/9/d/9df61d31a21e2de2d2eceb650e211a4a9beb38bc.png)

---

<div class="post-metadata">

**Author:** ![Alex-00](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/alex-00/32/10008_2.png) [@Alex-00](https://community.n8n.io/u/Alex-00)\
**Post date:** [September 9, 2023, 5:30am UTC](https://community.n8n.io/t/community-node-discord-trigger-send/18896/6 "2023-09-09T05:30:39Z")

</div>

I have this happening for some reason - Invalid credentials - Close and reopen this node model after making changes.Although it seems that everything was done correctly.

 ![Снимок экрана 2023-09-09 045923](https://europe1.discourse-cdn.com/n8n/original/3X/8/2/825560116d8901806b2979c3781c15e481e71c67.png)

---

<div class="post-metadata">

**Author:** ![pooria](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/pooria/32/14482_2.png) [@pooria](https://community.n8n.io/u/pooria)\
**Post date:** [September 12, 2023, 6:10am UTC](https://community.n8n.io/t/community-node-discord-trigger-send/18896/7 "2023-09-12T06:10:24Z")

</div>

Is this discord community node up to date with discord’s api?

---

<div class="post-metadata">

**Author:** ![Ignatz](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ignatz/32/29648_2.png) [@Ignatz](https://community.n8n.io/u/Ignatz)\
**Post date:** [September 13, 2023, 3:55pm UTC](https://community.n8n.io/t/community-node-discord-trigger-send/18896/8 "2023-09-13T15:55:21Z")

</div>

This node seams to not work at the moment, I cannot send a message, and I get an error in the console.  
The GitHub repository for this was archived, so I assume the original dev is not supporting this project anymore.  
Will try to fork it this evening, and fix the issue. If it is as easy as I expect it to be, its just updating a dependency, and maybe adding one or two more paremters into the mix.

The error i’m getting is this btw:  
send:message to ########  
Error: Expected token to be set for this request, but none was present

---

<div class="post-metadata">

**Author:** ![datalytyks](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/datalytyks/32/11944_2.png) [@datalytyks](https://community.n8n.io/u/datalytyks)\
**Post date:** [September 14, 2023, 5:31am UTC](https://community.n8n.io/t/community-node-discord-trigger-send/18896/9 "2023-09-14T05:31:55Z")

</div>

Just found this and am getting auth errors although I followed the setup readme to the T. Curious what you find, this looks so promising!

---

<div class="post-metadata">

**Author:** ![Ignatz](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ignatz/32/29648_2.png) [@Ignatz](https://community.n8n.io/u/Ignatz)\
**Post date:** [September 14, 2023, 8:42am UTC](https://community.n8n.io/t/community-node-discord-trigger-send/18896/10 "2023-09-14T08:42:37Z")

</div>

I tried to fix it for a few hours yesterday, turned out to be a tougher nut then I expected 😃  
I know by now that the bot token is null, in the moment that it tries to send out a message, but I cannot find where it gets set to null. Login is working fine according to the logs, and the gateway receives a trigger, but when I want to send a message, I suddenly have a null token.  
Also, I cannot debug locally in the moment, due to the webhook needing to be https, which I currently dont have set up locally.  
Will continue my investigation over the next days. Maybe I can find something.  
In worst case, I have to rewrite some of the system, to get the credentials again on sendMessage, or something.  
Will see.

---

<div class="post-metadata">

**Author:** ![offsetkeyz](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/offsetkeyz/32/29746_2.png) [@offsetkeyz](https://community.n8n.io/u/offsetkeyz)\
**Post date:** [September 15, 2023, 8:04pm UTC](https://community.n8n.io/t/community-node-discord-trigger-send/18896/11 "2023-09-15T20:04:11Z")

</div>

Just found this as well and it’s not working currently. I’ll take a look at the code later this weekend. Let the thread know if anyone finds a solution!

---

<div class="post-metadata">

**Author:** ![Ignatz](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ignatz/32/29648_2.png) [@Ignatz](https://community.n8n.io/u/Ignatz)\
**Post date:** [September 16, 2023, 7:01pm UTC](https://community.n8n.io/t/community-node-discord-trigger-send/18896/12 "2023-09-16T19:01:22Z")

</div>

Okay… I still have no idea whats going on, but I got it back to work, with a bit of a workaround.  
I send the token with every IPC now, and if sending the message fails, it tries to log in again, before attempting a new send.  
With that I got it to work, to send my message again, but it does re-authentificate multiple times even for one single message.  
I’m not yet sure why this is happening. My best guess is, that there are some api calls happening in the code, that result in a 401, which causes the bot token to be reset.

My version is available as an npm package: [https://www.npmjs.com/package/n8n-nodes-discord-fork](https://www.npmjs.com/package/n8n-nodes-discord-fork)  
Note: I only checked “Send Message” so far. There might still be problems with other nodes. And I dont know if the constant re-authentification is so healthy either 😃

My code can be found here:

> **[GitHub - feuerball11/n8n-nodes-discord: Nodes to trigger workflows from...](https://github.com/feuerball11/n8n-nodes-discord)**
>
> Nodes to trigger workflows from Discord or send interactive messages - GitHub - feuerball11/n8n-nodes-discord: Nodes to trigger workflows from Discord or send interactive messages

---

<div class="post-metadata">

**Author:** ![Ignatz](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ignatz/32/29648_2.png) [@Ignatz](https://community.n8n.io/u/Ignatz)\
**Post date:** [September 16, 2023, 8:03pm UTC](https://community.n8n.io/t/community-node-discord-trigger-send/18896/13 "2023-09-16T20:03:34Z")

</div>

Also added an option with 0.5.10, to name files. Needed that for OpenAi Image generation links, to work correctly.

---

<div class="post-metadata">

**Author:** ![Ignatz](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ignatz/32/29648_2.png) [@Ignatz](https://community.n8n.io/u/Ignatz)\
**Post date:** [September 17, 2023, 1:37pm UTC](https://community.n8n.io/t/community-node-discord-trigger-send/18896/14 "2023-09-17T13:37:38Z")

</div>

Version 0.5.15 lost commands for now, but It looks like the credentials / login issue might be resolved now.  
there was an client.destroy() call in the credentials setup.  
I didnt thought much of it, and just assumed its for resetting the client. However, it seams that this was not the original intent of discord.js, and this line killed the authentification.

Also added a node to get past channel messages.

---

<div class="post-metadata">

**Author:** ![Hussein\_Fahmy](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/hussein_fahmy/32/30020_2.png) [@Hussein\_Fahmy](https://community.n8n.io/u/Hussein_Fahmy)\
**Post date:** [September 22, 2023, 10:07pm UTC](https://community.n8n.io/t/community-node-discord-trigger-send/18896/15 "2023-09-22T22:07:47Z")

</div>

@Ignatz good job so far, I hope you get the trigger node works as well, thanks

---

<div class="post-metadata">

**Author:** ![Ignatz](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ignatz/32/29648_2.png) [@Ignatz](https://community.n8n.io/u/Ignatz)\
**Post date:** [September 23, 2023, 1:24pm UTC](https://community.n8n.io/t/community-node-discord-trigger-send/18896/16 "2023-09-23T13:24:15Z")

</div>

The trigger node works fine for me. What issue do you have with it?

---

<div class="post-metadata">

**Author:** ![Hussein\_Fahmy](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/hussein_fahmy/32/30020_2.png) [@Hussein\_Fahmy](https://community.n8n.io/u/Hussein_Fahmy)\
**Post date:** [September 23, 2023, 5:29pm UTC](https://community.n8n.io/t/community-node-discord-trigger-send/18896/17 "2023-09-23T17:29:27Z")

</div>

The trigger doesn’t triggere.  
I setup the bot as the documentation, added the credentials in n8n. Click listen for events, try to send a message to any channel and I don’t get any events

---

<div class="post-metadata">

**Author:** ![Ignatz](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ignatz/32/29648_2.png) [@Ignatz](https://community.n8n.io/u/Ignatz)\
**Post date:** [September 25, 2023, 8:00am UTC](https://community.n8n.io/t/community-node-discord-trigger-send/18896/18 "2023-09-25T08:00:08Z")

</div>

The “listen for event” button for testing, does not work. I did not look into it yet why.  
But the nide should work fine, if you set it up, and activate the workflow.

I see that this is an suboptimal workflow. I can check if i find a way to get the testing state to work again.  
In the meantime, you have to use the workaround of activating the flow, and testing it that way.

---

<div class="post-metadata">

**Author:** ![babou](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/babou/32/30519_2.png) [@babou](https://community.n8n.io/u/babou)\
**Post date:** [October 8, 2023, 1:45pm UTC](https://community.n8n.io/t/community-node-discord-trigger-send/18896/19 "2023-10-08T13:45:59Z")

</div>

Hey @Ignatz, I tried your forked node, it works fine for the **Discord Send** and **Discord Get** but I tried a lot to make the trigger works, and it still doesn’t. I don’t see any logs in the docker to debug it too.  
I don’t know if you had time to look at it ? I will try to look at the code on your repository on my side

---

<div class="post-metadata">

**Author:** ![Pedro\_Buffon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/pedro_buffon/32/20459_2.png) [@Pedro\_Buffon](https://community.n8n.io/u/Pedro_Buffon)\
**Post date:** [November 3, 2023, 5:53pm UTC](https://community.n8n.io/t/community-node-discord-trigger-send/18896/20 "2023-11-03T17:53:10Z")

</div>

hi!!!, i’ve been using your forked version for the past month, anyway you can get discord commands working again?

[Next page](https://community.n8n.io/t/community-node-discord-trigger-send/18896.md?page=2)
