Browse Source

Fix IGuild.GetBansAsync() (#2424)

fix the problem of not being able to get more than 1000 bans
tags/3.8.0
BokuNoPasya GitHub 2 years ago
parent
commit
b7b7964de9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.Rest/Entities/Guilds/GuildHelper.cs

+ 1
- 1
src/Discord.Net.Rest/Entities/Guilds/GuildHelper.cs View File

@@ -180,7 +180,7 @@ namespace Discord.Rest
},
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);


Loading…
Cancel
Save