re-added pagination to lsar

This commit is contained in:
Master Kwoth 2017-11-01 05:47:08 +01:00
parent 72fd8d861b
commit e737e8bc1b

View File

@ -130,6 +130,8 @@ namespace NadekoBot.Modules.Administration
exclusive = uow.GuildConfigs.For(Context.Guild.Id, set => set)
.ExclusiveSelfAssignedRoles;
var roleModels = uow.SelfAssignedRoles.GetFromGuild(Context.Guild.Id)
.Skip(page * 20)
.Take(20)
.ToDictionary(x => x.Key, x => x.AsEnumerable().ToArray())
.OrderBy(x => x.Key);
foreach (var kvp in roleModels)