mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +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) {
|
||||
const obj = cleaned.classes[item.memberof] || cleaned.interfaces[item.memberof];
|
||||
const newReturns = [];
|
||||
if (!item.returns) {
|
||||
item.returns = [{
|
||||
type: {
|
||||
names: ['null'],
|
||||
},
|
||||
}];
|
||||
}
|
||||
for (const name of item.returns[0].type.names) {
|
||||
newReturns.push(matchReturnName(name));
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* A base class for different types of rate limiting handlers for the REST API.
|
||||
* @private
|
||||
*/
|
||||
module.exports = class RequestHandler {
|
||||
class RequestHandler {
|
||||
constructor(restManager) {
|
||||
/**
|
||||
* The RESTManager that instantiated this RequestHandler
|
||||
@@ -43,4 +43,6 @@ module.exports = class RequestHandler {
|
||||
handle() {
|
||||
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = RequestHandler;
|
||||
|
||||
@@ -6,7 +6,7 @@ const RequestHandler = require('./RequestHandler');
|
||||
* but it can be slower.
|
||||
* @extends {RequestHandler}
|
||||
*/
|
||||
module.exports = class SequentialRequestHandler extends RequestHandler {
|
||||
class SequentialRequestHandler extends RequestHandler {
|
||||
|
||||
constructor(restManager) {
|
||||
super(restManager);
|
||||
@@ -89,4 +89,6 @@ module.exports = class SequentialRequestHandler extends RequestHandler {
|
||||
const item = this.queue[0];
|
||||
this.execute(item).then(() => this.handle());
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = SequentialRequestHandler;
|
||||
|
||||
Reference in New Issue
Block a user