From b5dfb5592389ec5471b4625ed5d644f9b27fab3e Mon Sep 17 00:00:00 2001 From: Crawl Date: Sun, 8 Mar 2020 19:27:42 +0100 Subject: [PATCH] docs: make collections more accessible in docs (#3907) Fixes #3896 --- src/util/Collection.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/util/Collection.js b/src/util/Collection.js index 12b040edc..3219fb8a6 100644 --- a/src/util/Collection.js +++ b/src/util/Collection.js @@ -3,11 +3,6 @@ const BaseCollection = require('@discordjs/collection'); const Util = require('./Util'); -/** - * 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. - * @extends {BaseCollection} - */ class Collection extends BaseCollection { toJSON() { return this.map(e => (typeof e.toJSON === 'function' ? e.toJSON() : Util.flatten(e))); @@ -17,6 +12,6 @@ class Collection extends BaseCollection { module.exports = Collection; /** - * @external BaseCollection - * @see {@link https://discord.js.org/#/docs/collection/} + * @external Collection + * @see {@link https://discord.js.org/#/docs/collection/master/class/Collection} */