Proxy Fix
This commit is contained in:
parent
9106bd970a
commit
0514ebc7b0
@ -1018,11 +1018,7 @@ class Client extends BaseClient {
|
|||||||
}
|
}
|
||||||
if (options && typeof options.proxy !== 'string') {
|
if (options && typeof options.proxy !== 'string') {
|
||||||
throw new TypeError('CLIENT_INVALID_OPTION', 'proxy', 'a string');
|
throw new TypeError('CLIENT_INVALID_OPTION', 'proxy', 'a string');
|
||||||
} else if (
|
} else if (options && options.proxy && typeof options.proxy === 'string') {
|
||||||
options &&
|
|
||||||
options.proxy &&
|
|
||||||
typeof options.proxy === 'string'
|
|
||||||
) {
|
|
||||||
getProxyObject(options.proxy);
|
getProxyObject(options.proxy);
|
||||||
}
|
}
|
||||||
if (typeof options.shardCount !== 'number' || isNaN(options.shardCount) || options.shardCount < 1) {
|
if (typeof options.shardCount !== 'number' || isNaN(options.shardCount) || options.shardCount < 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user