Automatic update of _Sidebar.md from github-wiki-sidebar
This commit is contained in:
parent
6e5e4a35fd
commit
43045f0b70
5
_Sidebar.md
Normal file
5
_Sidebar.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
* [DOCUMENT](./DOCUMENT)
|
||||||
|
* [README](./README)
|
||||||
|
|
||||||
|
|
||||||
|
[//]: # (generated by https://www.npmjs.com/package/github-wiki-sidebar)
|
18
options.json
Normal file
18
options.json
Normal 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
|
||||||
|
}
|
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user