Trying to delete messages that don't contain images and it's not deleting them
Why doesn't this work? There are no errors in the console
8 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 OP#djs-questions next time please
also, you can just check the size of the collection
Sorry. Like this?
That doesn't work either
That doesn't work either
do you have the MessageContent intent
and GuildMessages
Yep
If you aren't getting any errors, try to place
console.log
checkpoints throughout your code to find out where execution stops.
- Once you do, log relevant values and if-conditions
- More sophisticated debugging methods are breakpoints and runtime inspections: learn morewhat event are u listening to?