How to receive webhook update gateway events?
Hello, I'm trying to receive webhook events through the code below:
I tried
- changing a webhook's name
- adding/moving a webhook
but the only log I get is the initial ready log. The bot has Administrator permission.
Is there something wrong with the code snippet above? Version's 14.13.0
5 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by OPYou also need the Guilds intent iirc
ah that was exactly it. thanks! I'm a bit wary of receiving guild intents though, depending on how much more the client may be doing...do you know if there is any caching that comes with this?
ideally I'd like to only receive events, and have no side effects (caching or the sorts)
It caches all the guilds, channels and roles
If you dont want any caching, you're better off using /core
I see, that sounds like the better route - thanks, I appreciate the quick help