You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The key can be a number, a string, a big integer, an object, an array, a function...
What do you expect Collection#after() to do if you receive a collection keyed by functions?
I believe this should be left for users to compare themselves—they will have a better understanding of the data inside a collection they receive.
Yes, as i have written. Didn't think about the functions and so on...
So i need create my own logic. but i have some problems. currently while doing this. I would like to describe my problem, but i think it doesnt fits into this issue. I already opened a post on discord.
Which application or package is this feature request for?
collection
Feature
Hello, maybe it would be cool to get items before/after key.
like here:
https://discord.js.org/docs/packages/discord.js/main/FetchMessagesOptions:Interface#after
https://discord.js.org/docs/packages/discord.js/main/FetchMessagesOptions:Interface#before
Ideal solution or implementation
Collection#after(key: K)
: Should only return messages after the keyCollection#before(key: K)
: Should only return messages before the keyAlternative solutions or implementations
No response
Other context
No response
The text was updated successfully, but these errors were encountered: