From 0514ebc7b0db312501237be8aa2643fb8b1355d4 Mon Sep 17 00:00:00 2001 From: GamerboyTR Date: Sat, 23 Dec 2023 13:22:49 +0300 Subject: [PATCH] Proxy Fix --- src/client/Client.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/client/Client.js b/src/client/Client.js index c92fed7..8459cb3 100644 --- a/src/client/Client.js +++ b/src/client/Client.js @@ -1018,11 +1018,7 @@ class Client extends BaseClient { } if (options && typeof options.proxy !== 'string') { throw new TypeError('CLIENT_INVALID_OPTION', 'proxy', 'a string'); - } else if ( - options && - options.proxy && - typeof options.proxy === 'string' - ) { + } else if (options && options.proxy && typeof options.proxy === 'string') { getProxyObject(options.proxy); } if (typeof options.shardCount !== 'number' || isNaN(options.shardCount) || options.shardCount < 1) {