From 84eeb780d115a354c9e5a7afbc0ded41d607663e Mon Sep 17 00:00:00 2001 From: Quin Lynch <49576606+quinchs@users.noreply.github.com> Date: Wed, 16 Feb 2022 10:43:04 -0400 Subject: [PATCH] Revert "Fixes unused creation of REST clients for DiscordShardedClient shards. (#2109)" (#2116) This reverts commit 6039378c52b38a2ae53bd012643d94e84091cebd. --- src/Discord.Net.WebSocket/DiscordSocketClient.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Discord.Net.WebSocket/DiscordSocketClient.cs b/src/Discord.Net.WebSocket/DiscordSocketClient.cs index ecd53cf65..b0215d9ef 100644 --- a/src/Discord.Net.WebSocket/DiscordSocketClient.cs +++ b/src/Discord.Net.WebSocket/DiscordSocketClient.cs @@ -152,8 +152,7 @@ namespace Discord.WebSocket LogGatewayIntentWarnings = config.LogGatewayIntentWarnings; HandlerTimeout = config.HandlerTimeout; State = new ClientState(0, 0); - if (shardedClient is null || parentClient is null) - Rest = new DiscordSocketRestClient(config, ApiClient); + Rest = new DiscordSocketRestClient(config, ApiClient); _heartbeatTimes = new ConcurrentQueue(); _gatewayIntents = config.GatewayIntents; _defaultStickers = ImmutableArray.Create>();