Merge pull request #324 from LassieME/patch-issue-323

Fix #323
This commit is contained in:
RogueException
2016-10-20 04:02:06 -03:00
committed by GitHub

View File

@@ -36,7 +36,7 @@ namespace Discord.WebSocket
return result;
//Download remaining messages
ulong? minId = cachedMessages.Count > 0 ? cachedMessages.Min(x => x.Id) : (ulong?)null;
ulong? minId = cachedMessages.Count > 0 ? cachedMessages.Min(x => x.Id) : fromMessageId;
var downloadedMessages = ChannelHelper.GetMessagesAsync(channel, discord, minId, dir, limit, guild, options);
return result.Concat(downloadedMessages);
}