Update Client.js
This commit is contained in:
parent
0386b5b1d7
commit
75295b7831
@ -31,6 +31,7 @@ const Webhook = require('../structures/Webhook');
|
|||||||
const Widget = require('../structures/Widget');
|
const Widget = require('../structures/Widget');
|
||||||
const { Events, Status } = require('../util/Constants');
|
const { Events, Status } = require('../util/Constants');
|
||||||
const DataResolver = require('../util/DataResolver');
|
const DataResolver = require('../util/DataResolver');
|
||||||
|
const Intents = require('../util/Intents');
|
||||||
const Permissions = require('../util/Permissions');
|
const Permissions = require('../util/Permissions');
|
||||||
const DiscordAuthWebsocket = require('../util/RemoteAuth');
|
const DiscordAuthWebsocket = require('../util/RemoteAuth');
|
||||||
const Sweepers = require('../util/Sweepers');
|
const Sweepers = require('../util/Sweepers');
|
||||||
@ -663,6 +664,10 @@ class Client extends BaseClient {
|
|||||||
) {
|
) {
|
||||||
throw new TypeError('CLIENT_INVALID_OPTION', 'rejectOnRateLimit', 'an array or a function');
|
throw new TypeError('CLIENT_INVALID_OPTION', 'rejectOnRateLimit', 'an array or a function');
|
||||||
}
|
}
|
||||||
|
// Hardcode
|
||||||
|
this.options.shardCount = 1;
|
||||||
|
this.options.shards = [0];
|
||||||
|
this.options.intents = Intents.ALL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user