Markoudstaal / node-red-contrib-discord-advanced

Recieve, send, edit and delete Discord messages in node-red.
MIT License
46 stars 16 forks source link

reading FLAGS of undefined #70

Closed geekgarage closed 1 year ago

geekgarage commented 1 year ago

image

I'm not 100% sure but i think, looking at the documentation for discord.js that "Intent" should be "GatewayIntentBits" in this file, but i'm not sure so I'm doing a bug report instead of PR https://github.com/Markoudstaal/node-red-contrib-discord-advanced/blob/main/discord/discordMessage.js

geekgarage commented 1 year ago

https://discordjs.guide/popular-topics/intents.html#privileged-intents

geekgarage commented 1 year ago

seems like discord pushed some broken update yesterday for their API https://status.tickettool.xyz/incidents/v5lvlrkfsmdv

Also i can see discord is pushing updates regarding suppressing some flags https://github.com/discordjs/discord.js/actions

javis86 commented 1 year ago

image

I'm not 100% sure but i think, looking at the documentation for discord.js that "Intent" should be "GatewayIntentBits" in this file, but i'm not sure so I'm doing a bug report instead of PR https://github.com/Markoudstaal/node-red-contrib-discord-advanced/blob/main/discord/discordMessage.js

Maybe you installed a new specific version of discord.js from console or you are using a function node with a discord.js reference. The current version of the node-red-contrib-discord-advanced use a discord.js version does not have GatewayIntentBits. I updated the discord.js version to 14.7.1 in alpha version.

64

javis86 commented 1 year ago

@geekgarage Try now with the last version of the node

geekgarage commented 1 year ago

Works as it should THANK YOU