# Discord node bot mentions not working

**URL:** <https://discourse.nodered.org/t/discord-node-bot-mentions-not-working/66075>\
**Category:** General\
**Created:** [5 August 2022 14:56 UTC](https://discourse.nodered.org/t/discord-node-bot-mentions-not-working/66075 "2022-08-05T14:56:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hepcat72](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hepcat72/32/8078_2.png) [@hepcat72](https://discourse.nodered.org/u/hepcat72)\
**Post date:** [5 August 2022 14:56 UTC](https://discourse.nodered.org/t/discord-node-bot-mentions-not-working/66075/1 "2022-08-05T14:56:38Z")

</div>

This is probably the wrong place for this question, but since discord support won't help with this and I'm trying to use the discord node to send myself messages, I thougt I'd start here before asking elsewhere.

I set up node-red-node-discord earlier this week, which says you can include mentions in its doc, but those mentions stopped working, i.e. the messages including mentions no longer get highlighted in discord and the iOS Discord app badge no longer increments the unread messages count.

I think that this stopped working when, while trying to tweak my notification settings, I reset the notifications override in the app. I tried re-authorizing the bot, kicking it off and reinviting, restarting my iPhone, restarting the app, and a half dozen other things including setting the notification settings the way I think they should enable the bot mentions (every message for the server, the bot, and the channel).

Has anyone faced this issue and figured out how to fix it? It seems like I'm just going to have to switch to another messaging app, like telegram or something.

---

<div class="post-metadata">

**Author:** ![HaroldPetersInskipp](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/haroldpetersinskipp/32/42319_2.png) [@HaroldPetersInskipp](https://discourse.nodered.org/u/HaroldPetersInskipp)\
**Post date:** [5 August 2022 16:03 UTC](https://discourse.nodered.org/t/discord-node-bot-mentions-not-working/66075/2 "2022-08-05T16:03:39Z")

</div>

First you'll want to clarify which `Discord nodes` you are using, as there are multiple? It would also be useful to have some information regarding your Node-RED setup?

---

<div class="post-metadata">

**Author:** ![hepcat72](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hepcat72/32/8078_2.png) [@hepcat72](https://discourse.nodered.org/u/hepcat72)\
**Post date:** [5 August 2022 16:20 UTC](https://discourse.nodered.org/t/discord-node-bot-mentions-not-working/66075/3 "2022-08-05T16:20:09Z")

</div>

> [@hepcat72](#):
>
> node-red-node-discord

I'm using the send message node. The messages send. I get them. It's just that the mentions aren't working. They were working at least through 1:31pm yesterday:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/3/a3ca8095911a1cf10d6e2331a214de2edb0d8744.png)

See how the 1:31 message highlights the mention of `@hepcat72`, but the 8:01pm one doesn't?

---

<div class="post-metadata">

**Author:** ![HaroldPetersInskipp](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/haroldpetersinskipp/32/42319_2.png) [@HaroldPetersInskipp](https://discourse.nodered.org/u/HaroldPetersInskipp)\
**Post date:** [6 August 2022 14:33 UTC](https://discourse.nodered.org/t/discord-node-bot-mentions-not-working/66075/4 "2022-08-06T14:33:12Z")

</div>

So that particular node hasn't been updated in over 2 years. I use `node-red-contrib-discord-advanced` which depends on a more up-to-date version of `discord.js` (It does however require \>= node v16.6.0). Would you be open to switching nodes to resolve the issue?

Alternatively, there is also `node-red-contrib-discordjs` which I used prior to the above (still use it on one device) that is in between the versions used in `node-red-node-discord`-`node-red-contrib-discord-advanced`? (the node you're using is the oldest of the three)

If you can't switch for some reason, could you provide an example of the data being received by the discord node (Use a debug node set to output the complete msg object).

---

<div class="post-metadata">

**Author:** ![hepcat72](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hepcat72/32/8078_2.png) [@hepcat72](https://discourse.nodered.org/u/hepcat72)\
**Post date:** [6 August 2022 16:26 UTC](https://discourse.nodered.org/t/discord-node-bot-mentions-not-working/66075/5 "2022-08-06T16:26:19Z")

</div>

Actually, it is now working. Something I enabled in the bot's permissions last night made it start being able to @mention users. I'd noted that using @here and [@everyone](https://discourse.nodered.org/groups/everyone) worked. It was just that @hepcat72 was not working. I also noted that I could @mention myself manually.

There's no obvious permission setting change that I can attribute it to. I enabled a bunch of permissions and re-invited the bot, hoping that something would fix it... and it did. I'm not sure if this is completely a problem of the bot or the node, but regardless, I just won't mess with it anymore.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [20 August 2022 16:26 UTC](https://discourse.nodered.org/t/discord-node-bot-mentions-not-working/66075/6 "2022-08-20T16:26:44Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
