node-red-contrib-discord-advanced icon indicating copy to clipboard operation
node-red-contrib-discord-advanced copied to clipboard

Support flags for sent messages

Open skylord123 opened this issue 11 months ago • 1 comments

I need to set sent message flags so I can disable notifications for specific messages the bot sends (and/or disable embeds).

Also as a side note: I didn't know that channel was supposed to be the id of the channel. I thought it was the name. This should be documented somewhere (preferably right under the channel config field) to prevent confusion.

skylord123 avatar Mar 21 '24 16:03 skylord123

I need to set sent message flags so I can disable notifications for specific messages the bot sends (and/or disable embeds).

Also as a side note: I didn't know that channel was supposed to be the id of the channel. I thought it was the name. This should be documented somewhere (preferably right under the channel config field) to prevent confusion.

I think you need to keep in nodered the id of messages that you want to avoid . When you send a new message, keep in a db or in a flow variable the array of ids that you send, and then after your discordMessage node, filter in a function node that messages.

https://flowfuse.com/blog/2024/05/understanding-node-flow-global-environment-variables-in-node-red/

javis86 avatar Sep 03 '24 12:09 javis86