Browse Source

Remove unnecessary length check

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


Loading…
Cancel
Save