Browse Source

Revert "Fixes unused creation of REST clients for DiscordShardedClient shards. (#2109)" (#2116)

This reverts commit 6039378c52.
tags/3.3.2
Quin Lynch GitHub 3 years ago
parent
commit
84eeb780d1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      src/Discord.Net.WebSocket/DiscordSocketClient.cs

+ 1
- 2
src/Discord.Net.WebSocket/DiscordSocketClient.cs View File

@@ -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<long>();
_gatewayIntents = config.GatewayIntents;
_defaultStickers = ImmutableArray.Create<StickerPack<SocketSticker>>();


Loading…
Cancel
Save