Skip to content

Commit b5dfb55

Browse files
authored
docs: make collections more accessible in docs (#3907)
Fixes #3896
1 parent 69d4153 commit b5dfb55

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/util/Collection.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33
const BaseCollection = require('@discordjs/collection');
44
const Util = require('./Util');
55

6-
/**
7-
* A Map with additional utility methods. This is used throughout discord.js rather than Arrays for anything that has
8-
* an ID, for significantly improved performance and ease-of-use.
9-
* @extends {BaseCollection}
10-
*/
116
class Collection extends BaseCollection {
127
toJSON() {
138
return this.map(e => (typeof e.toJSON === 'function' ? e.toJSON() : Util.flatten(e)));
@@ -17,6 +12,6 @@ class Collection extends BaseCollection {
1712
module.exports = Collection;
1813

1914
/**
20-
* @external BaseCollection
21-
* @see {@link https://discord.js.org/#/docs/collection/}
15+
* @external Collection
16+
* @see {@link https://discord.js.org/#/docs/collection/master/class/Collection}
2217
*/

0 commit comments

Comments
 (0)