diff --git a/_Sidebar.md b/_Sidebar.md new file mode 100644 index 00000000..81ab838 --- /dev/null +++ b/_Sidebar.md @@ -0,0 +1,5 @@ + * [DOCUMENT](./DOCUMENT) + * [README](./README) + + +[//]: # (generated by https://www.npmjs.com/package/github-wiki-sidebar) diff --git a/options.json b/options.json new file mode 100644 index 00000000..1698620 --- /dev/null +++ b/options.json @@ -0,0 +1,18 @@ +{ + "menu": { + "item": "{{#levelRepeat}} {{/levelRepeat}}* [{{{title}}}]({{{link}}})\n", + "category": "{{#levelRepeat}} {{/levelRepeat}}* {{#link}}[{{{title}}}]({{{link}}}){{/link}}{{^link}}{{{title}}}{{/link}}\n{{{subitems}}}", + "category-1": "{{{subitems}}}\n" + }, + "rules": { + "exclude": [], + "order": [ + "Home.md" + ] + }, + "separator": "@", + "linkTemplate": "./%s", + "menuFile": "_Sidebar.md", + "multilang": false, + "menuOnly": true +} \ No newline at end of file diff --git a/src/managers/RelationshipsManager.js b/src/managers/RelationshipsManager.js index 40bfd50..8c0084b 100644 --- a/src/managers/RelationshipsManager.js +++ b/src/managers/RelationshipsManager.js @@ -8,7 +8,7 @@ const User = require('../structures/User'); const { RelationshipTypes } = require('../util/Constants'); /** - * Manages API methods for users and stores their cache. + * Manages API methods for Relationships and stores their cache. */ class RelationshipsManager { constructor(client, users) { @@ -17,6 +17,11 @@ class RelationshipsManager { this._setup(users); } + /** + * @private + * @param {Array} users An array of users to add to the cache + * @returns {void} + */ _setup(users) { if (!Array.isArray(users)) return; for (const relationShip of users) {