Skip to content

Commit

Permalink
Revert "Fixes unused creation of REST clients for DiscordShardedClien…
Browse files Browse the repository at this point in the history
…t shards. (#2109)" (#2116)

This reverts commit 6039378.
  • Loading branch information
quinchs authored Feb 16, 2022
1 parent 1ffe9ee commit 84eeb78
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Discord.Net.WebSocket/DiscordSocketClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,7 @@ private DiscordSocketClient(DiscordSocketConfig config, API.DiscordSocketApiClie
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>>();
Expand Down

0 comments on commit 84eeb78

Please sign in to comment.