Skip to content

Commit

Permalink
Fix IGuild.GetBansAsync() (#2424)
Browse files Browse the repository at this point in the history
fix the problem of not being able to get more than 1000 bans
  • Loading branch information
1NieR committed Aug 21, 2022
1 parent b6b5e95 commit b7b7964
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Discord.Net.Rest/Entities/Guilds/GuildHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public static ulong GetUploadLimit(IGuild guild)
},
nextPage: (info, lastPage) =>
{
if (lastPage.Count != DiscordConfig.MaxMessagesPerBatch)
if (lastPage.Count != DiscordConfig.MaxBansPerBatch)
return false;
if (dir == Direction.Before)
info.Position = lastPage.Min(x => x.User.Id);
Expand Down

0 comments on commit b7b7964

Please sign in to comment.