mirror of
https://github.com/danbulant/discord.js
synced 2026-07-06 19:50:55 +00:00
Rebuild docs
This commit is contained in:
parent
ed818d6e7f
commit
fb55b6dc60
4 changed files with 16 additions and 5 deletions
File diff suppressed because one or more lines are too long
|
|
@ -83,6 +83,13 @@ function clean() {
|
||||||
} else if (item.kind === 'function' && item.memberof) {
|
} else if (item.kind === 'function' && item.memberof) {
|
||||||
const obj = cleaned.classes[item.memberof] || cleaned.interfaces[item.memberof];
|
const obj = cleaned.classes[item.memberof] || cleaned.interfaces[item.memberof];
|
||||||
const newReturns = [];
|
const newReturns = [];
|
||||||
|
if (!item.returns) {
|
||||||
|
item.returns = [{
|
||||||
|
type: {
|
||||||
|
names: ['null'],
|
||||||
|
},
|
||||||
|
}];
|
||||||
|
}
|
||||||
for (const name of item.returns[0].type.names) {
|
for (const name of item.returns[0].type.names) {
|
||||||
newReturns.push(matchReturnName(name));
|
newReturns.push(matchReturnName(name));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
* A base class for different types of rate limiting handlers for the REST API.
|
* A base class for different types of rate limiting handlers for the REST API.
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
module.exports = class RequestHandler {
|
class RequestHandler {
|
||||||
constructor(restManager) {
|
constructor(restManager) {
|
||||||
/**
|
/**
|
||||||
* The RESTManager that instantiated this RequestHandler
|
* The RESTManager that instantiated this RequestHandler
|
||||||
|
|
@ -43,4 +43,6 @@ module.exports = class RequestHandler {
|
||||||
handle() {
|
handle() {
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
|
module.exports = RequestHandler;
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ const RequestHandler = require('./RequestHandler');
|
||||||
* but it can be slower.
|
* but it can be slower.
|
||||||
* @extends {RequestHandler}
|
* @extends {RequestHandler}
|
||||||
*/
|
*/
|
||||||
module.exports = class SequentialRequestHandler extends RequestHandler {
|
class SequentialRequestHandler extends RequestHandler {
|
||||||
|
|
||||||
constructor(restManager) {
|
constructor(restManager) {
|
||||||
super(restManager);
|
super(restManager);
|
||||||
|
|
@ -89,4 +89,6 @@ module.exports = class SequentialRequestHandler extends RequestHandler {
|
||||||
const item = this.queue[0];
|
const item = this.queue[0];
|
||||||
this.execute(item).then(() => this.handle());
|
this.execute(item).then(() => this.handle());
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
|
module.exports = SequentialRequestHandler;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue