mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 03:53:29 +01:00
Rebuild docs
This commit is contained in:
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user