From e737e8bc1b61f9d861919fe42b360110e4c18bc7 Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Wed, 1 Nov 2017 05:47:08 +0100 Subject: [PATCH] re-added pagination to lsar --- .../Modules/Administration/SelfAssignedRolesCommands.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NadekoBot.Core/Modules/Administration/SelfAssignedRolesCommands.cs b/NadekoBot.Core/Modules/Administration/SelfAssignedRolesCommands.cs index 67adfe08..de09f4aa 100644 --- a/NadekoBot.Core/Modules/Administration/SelfAssignedRolesCommands.cs +++ b/NadekoBot.Core/Modules/Administration/SelfAssignedRolesCommands.cs @@ -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)