Fix IGuild.GetBansAsync() (#2424)

fix the problem of not being able to get more than 1000 bans
This commit is contained in:
BokuNoPasya
2022-08-21 16:54:19 +05:00
committed by GitHub
parent b6b5e95f48
commit b7b7964de9

View File

@@ -180,7 +180,7 @@ namespace Discord.Rest
}, },
nextPage: (info, lastPage) => nextPage: (info, lastPage) =>
{ {
if (lastPage.Count != DiscordConfig.MaxMessagesPerBatch) if (lastPage.Count != DiscordConfig.MaxBansPerBatch)
return false; return false;
if (dir == Direction.Before) if (dir == Direction.Before)
info.Position = lastPage.Min(x => x.User.Id); info.Position = lastPage.Min(x => x.User.Id);