Automatic update of _Sidebar.md from github-wiki-sidebar

This commit is contained in:
March 7th 2022-04-26 12:41:31 +07:00
parent 6e5e4a35fd
commit 43045f0b70
3 changed files with 29 additions and 1 deletions

5
_Sidebar.md Normal file
View File

@ -0,0 +1,5 @@
* [DOCUMENT](./DOCUMENT)
* [README](./README)
[//]: # (generated by https://www.npmjs.com/package/github-wiki-sidebar)

18
options.json Normal file
View File

@ -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
}

View File

@ -8,7 +8,7 @@ const User = require('../structures/User');
const { RelationshipTypes } = require('../util/Constants'); 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 { class RelationshipsManager {
constructor(client, users) { constructor(client, users) {
@ -17,6 +17,11 @@ class RelationshipsManager {
this._setup(users); this._setup(users);
} }
/**
* @private
* @param {Array<User>} users An array of users to add to the cache
* @returns {void}
*/
_setup(users) { _setup(users) {
if (!Array.isArray(users)) return; if (!Array.isArray(users)) return;
for (const relationShip of users) { for (const relationShip of users) {