Channel webhooks
Here (https://discord.com/channels/222078108977594368/824411059443204127/1196811552846786702) is explained what i want to know
6 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 OPwell @Qjuh. I im creating a webhook and saving in a cache (a class that extends the native Map) per 5m. I want to delete this webhook from the cache when a webhook is deleted (I know how to do this, I just need to know how I will know if a webhook was deleted in the
webhooksUpdate
event)
The second case is that I want to know if the channel has reached the maximum size of webhooks allowed on that channel, and then delete the webhook from the cache
how to know it?the limit is 15 so check if the collection size u got from fetching webhooks equals to 15, im not sure what webhook u want to delete there tho
Yes, I thought about it, but I wanted to hear an answer. Another question, I heard that the limit was 10, is it really 15?
yes it's 15, u can check it yourself
ok