Objects not getting pushed to collection.
This check will detect if a user's roles has been updated, and if they have their old position roles, then it gets removed. For example, detecting if an administrator demoted to a moderator still has the administrator role. I added the role that was removed to a collection so I can add it to an embed to send to the user, but the only problem is that the collection is always empty.
2 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 OPNever find, I fixed it. I had to use a for loop instead.