PagedAsyncEnumerator's nextPage should return false if there are no more pages.
This commit is contained in:
@@ -187,9 +187,10 @@ namespace Discord.Rest
|
||||
},
|
||||
nextPage: (info, lastPage) =>
|
||||
{
|
||||
info.Position = lastPage.Max(x => x.Id);
|
||||
if (lastPage.Count != DiscordConfig.MaxMessagesPerBatch)
|
||||
info.Remaining = 0;
|
||||
return false;
|
||||
info.Position = lastPage.Max(x => x.Id);
|
||||
return true;
|
||||
},
|
||||
start: fromUserId,
|
||||
count: limit
|
||||
|
||||
Reference in New Issue
Block a user