Bug With difference() Method in Collections
Hi, if I am understanding the documentation correctly, there appears to be a bug with the difference() method of the collections class. The example given and the descriptions states that the method should return a new collection showing what is present in the first collection, but not the second. However when I try to run it, it first returns what doesn't exists in the first collection and then what does exists.
Given Example
My Code
D.js Version:
discord.js@14.14.1
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!Can you run
npm ls @discordjs/collection
?d.js still using v1.5.3
So there a way to update it? I tried
npm i discord.js
No
I mean, you could override it to use v2, not sure if that would break other stuff tho
I’m not too familiar w/ the changes in the collection package