Browse Source

Init

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

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

@@ -152,7 +152,8 @@ namespace Discord.WebSocket
LogGatewayIntentWarnings = config.LogGatewayIntentWarnings;
HandlerTimeout = config.HandlerTimeout;
State = new ClientState(0, 0);
Rest = new DiscordSocketRestClient(config, ApiClient);
if (shardedClient == null || (shardedClient.Shards?.Count > 1 && shardedClient.Shards.First()?.ShardId == ShardId))
Rest = new DiscordSocketRestClient(config, ApiClient);
_heartbeatTimes = new ConcurrentQueue<long>();
_gatewayIntents = config.GatewayIntents;
_defaultStickers = ImmutableArray.Create<StickerPack<SocketSticker>>();


Loading…
Cancel
Save