mirror of
https://github.com/danbulant/discord.js
synced 2026-07-05 19:20:42 +00:00
Webpack build for branch master: b694ab1b80
This commit is contained in:
parent
571ab432e9
commit
e4b05757b6
2 changed files with 9 additions and 2 deletions
|
|
@ -106,6 +106,7 @@ exports.DefaultOptions = {
|
||||||
apiRequestMethod: 'sequential',
|
apiRequestMethod: 'sequential',
|
||||||
shardId: 0,
|
shardId: 0,
|
||||||
shardCount: 0,
|
shardCount: 0,
|
||||||
|
internalSharding: false,
|
||||||
messageCacheMaxSize: 200,
|
messageCacheMaxSize: 200,
|
||||||
messageCacheLifetime: 0,
|
messageCacheLifetime: 0,
|
||||||
messageSweepInterval: 0,
|
messageSweepInterval: 0,
|
||||||
|
|
@ -17651,6 +17652,12 @@ class Client extends EventEmitter {
|
||||||
if (typeof options.restWsBridgeTimeout !== 'number' || isNaN(options.restWsBridgeTimeout)) {
|
if (typeof options.restWsBridgeTimeout !== 'number' || isNaN(options.restWsBridgeTimeout)) {
|
||||||
throw new TypeError('The restWsBridgeTimeout option must be a number.');
|
throw new TypeError('The restWsBridgeTimeout option must be a number.');
|
||||||
}
|
}
|
||||||
|
if (typeof options.internalSharding !== 'boolean') {
|
||||||
|
throw new TypeError('The internalSharding option must be a boolean.');
|
||||||
|
}
|
||||||
|
if (options.internalSharding && ('shardCount' in options || 'shardId' in options)) {
|
||||||
|
throw new TypeError('You cannot specify shardCount/shardId if you are using internal sharding.');
|
||||||
|
}
|
||||||
if (!(options.disabledEvents instanceof Array)) throw new TypeError('The disabledEvents option must be an Array.');
|
if (!(options.disabledEvents instanceof Array)) throw new TypeError('The disabledEvents option must be an Array.');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
4
discord.master.min.js
vendored
4
discord.master.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue