<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:Class
collection | 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
d.js toolkit
d.js toolkit2y ago
• 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.
d.js docs
d.js docs2y ago
method 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.
Finbar
FinbarOP2y ago
it should be documented here
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Finbar
FinbarOP2y ago
why has the documentation been changed at all its just gotten worse over the years
Finbar
FinbarOP2y ago
what was wrong with this?
Finbar
FinbarOP2y ago
its arguably better when everything is shown at the top
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
MrMythical
MrMythical2y ago
discord.js does not define get(), it's a native map thing
Finbar
FinbarOP2y ago
thats 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?
MrMythical
MrMythical2y ago
Ok but what will they get the documentation information from? They don't define it, there is nothing to document from
Finbar
FinbarOP2y ago
¯\_(ツ)_/¯
MrMythical
MrMythical2y ago
TypeScript packages were very difficult to document on the old website (all subpackages are typescript, afaik)
Finbar
FinbarOP2y ago
but i still dont understand why this was removed
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Finbar
FinbarOP2y ago
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
Want results from more Discord servers?
Add your server