Browse Source

Swap out for any check

pull/2109/head
Armano den Boef 3 years ago
parent
commit
c6013f1789
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.First()?.ShardId == ShardId)
if (shardedClient == null || !shardedClient.Shards.Any())
Rest = new DiscordSocketRestClient(config, ApiClient);
_heartbeatTimes = new ConcurrentQueue<long>();
_gatewayIntents = config.GatewayIntents;


Loading…
Cancel
Save