Browse Source

Final; Check if parentclient was passed

pull/2109/head
Armano den Boef 3 years ago
parent
commit
702a933099
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.WebSocket/DiscordSocketClient.cs

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

@@ -152,7 +152,7 @@ namespace Discord.WebSocket
LogGatewayIntentWarnings = config.LogGatewayIntentWarnings;
HandlerTimeout = config.HandlerTimeout;
State = new ClientState(0, 0);
if (shardedClient == null || !shardedClient.Shards.Any())
if (shardedClient is null || parentClient is null)
Rest = new DiscordSocketRestClient(config, ApiClient);
_heartbeatTimes = new ConcurrentQueue<long>();
_gatewayIntents = config.GatewayIntents;


Loading…
Cancel
Save