Browse Source

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

This reverts commit 6039378c52.
pull/2116/head
Quin Lynch GitHub 3 years ago
parent
commit
59ae5375a2
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