Small pagination bugfix

This commit is contained in:
Master Kwoth
2017-10-17 16:10:51 +02:00
parent 88f92cbec6
commit e54ceba0ab
14 changed files with 28 additions and 30 deletions

View File

@ -146,7 +146,7 @@ namespace NadekoBot.Modules.Administration
.WithTitle(GetText("self_assign_list", roleCnt))
.WithDescription(string.Join("\n", roles.Skip(curPage * 10).Take(10)))
.WithOkColor();
}, roles.Count / 10);
}, roles.Count, 10);
}
[NadekoCommand, Usage, Description, Aliases]

View File

@ -259,7 +259,7 @@ namespace NadekoBot.Modules.Administration
.WithTitle(status)
.WithOkColor()
.WithDescription(str);
}, allShardStrings.Length / 25);
}, allShardStrings.Length, 25);
}
[NadekoCommand, Usage, Description, Aliases]

View File

@ -34,7 +34,7 @@ namespace NadekoBot.Modules.Administration
.WithOkColor()
.WithTitle(GetText("timezones_available"))
.WithDescription(string.Join("\n", timezones.Skip(curPage * timezonesPerPage).Take(timezonesPerPage).Select(x => $"`{x.Id,-25}` {(x.BaseUtcOffset < TimeSpan.Zero? "-" : "+")}{x.BaseUtcOffset:hhmm}"))),
timezones.Length / timezonesPerPage);
timezones.Length, timezonesPerPage);
}
[NadekoCommand, Usage, Description, Aliases]

View File

@ -154,7 +154,7 @@ namespace NadekoBot.Modules.Administration
.WithTitle(GetText("warnings_list"))
.WithDescription(string.Join("\n", ws));
}, warnings.Length / 15);
}, warnings.Length, 15);
}
[NadekoCommand, Usage, Description, Aliases]