Fix IGuild.GetBansAsync() (#2424)
fix the problem of not being able to get more than 1000 bans
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user