Fixed page logic
This commit is contained in:
@@ -99,7 +99,7 @@ namespace Discord.Rest
|
||||
info.Remaining = 0;
|
||||
},
|
||||
start: fromMessageId,
|
||||
count: (uint)limit
|
||||
count: limit
|
||||
);
|
||||
}
|
||||
public static async Task<IReadOnlyCollection<RestMessage>> GetPinnedMessagesAsync(IChannel channel, BaseDiscordClient client)
|
||||
@@ -176,7 +176,7 @@ namespace Discord.Rest
|
||||
return user;
|
||||
}
|
||||
public static IAsyncEnumerable<IReadOnlyCollection<RestGuildUser>> GetUsersAsync(IGuildChannel channel, IGuild guild, BaseDiscordClient client,
|
||||
ulong? froUserId = null, uint? limit = DiscordConfig.MaxUsersPerBatch)
|
||||
ulong? froUserId = null, int? limit = DiscordConfig.MaxUsersPerBatch)
|
||||
{
|
||||
return new PagedAsyncEnumerable<RestGuildUser>(
|
||||
DiscordConfig.MaxUsersPerBatch,
|
||||
|
||||
@@ -185,7 +185,7 @@ namespace Discord.Rest
|
||||
info.Remaining = 0;
|
||||
},
|
||||
start: fromUserId,
|
||||
count: (uint)limit
|
||||
count: limit
|
||||
);
|
||||
}
|
||||
public static async Task<int> PruneUsersAsync(IGuild guild, BaseDiscordClient client,
|
||||
|
||||
Reference in New Issue
Block a user