From b7edf48a1965910c28ea7527c9369f600f984932 Mon Sep 17 00:00:00 2001 From: RogueException Date: Thu, 24 Mar 2016 20:59:01 -0300 Subject: [PATCH] Actually batch, not just offset... --- src/Discord.Net/DiscordClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Discord.Net/DiscordClient.cs b/src/Discord.Net/DiscordClient.cs index 1a7aaa1a2..7798b500e 100644 --- a/src/Discord.Net/DiscordClient.cs +++ b/src/Discord.Net/DiscordClient.cs @@ -528,7 +528,7 @@ namespace Discord { int batches = (largeServers.Count + (DiscordConfig.ServerBatchCount - 1)) / DiscordConfig.ServerBatchCount; for (int i = 0; i < batches; i++) - GatewaySocket.SendRequestMembers(largeServers.Skip(i * DiscordConfig.ServerBatchCount), "", 0); + GatewaySocket.SendRequestMembers(largeServers.Skip(i * DiscordConfig.ServerBatchCount).Take(DiscordConfig.ServerBatchCount), "", 0); } else EndConnect();