<Collection>#get not documented?
Why is the
<Collection>#get
method not documented? I would assume its because the documentation generator isnt listing methods from the extended class, but why..? They're still important methods that should be documented. Also why has the documentation changed and now class properties and methods are not shown in a list at the top of the page? This seems an incredibly inefficient and ineffective way to document such an extensive library,
https://discord.js.org/docs/packages/collection/main/Collection:Classcollection | Collection
A Map with additional utility methods. This is used throughout discord.js rather than Arrays for anything that has an ID, for significantly improved performance and ease-of-use.
16 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers. Collection#get()
Returns a specified element from the Map object. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Map.
it should be documented here
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
why has the documentation been changed at all
its just gotten worse over the years
what was wrong with this?
its arguably better when everything is shown at the top
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
discord.js does not define
get()
, it's a native map thingthats what i thought but omitting extended class methods seems illogical
i mean you're literally not documenting something that exists
so new packages is an excuse to make bulkier documentation?
Ok but what will they get the documentation information from?
They don't define it, there is nothing to document from
¯\_(ツ)_/¯
TypeScript packages were very difficult to document on the old website (all subpackages are typescript, afaik)
but i still dont understand why this was removed
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
im not talking about that
im saying the list at the top of the page with all properties and methods
even in the "new old" documentation its there
but in the new new documentation its entirely removed as far as i can see
is there another way to view all properties and methods in a condensed list without scrolling?
i feel like new users will have a hard time finding what they need unless they know exactly what theyre looking for