Small pagination bugfix
This commit is contained in:
@ -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]
|
||||
|
@ -259,7 +259,7 @@ namespace NadekoBot.Modules.Administration
|
||||
.WithTitle(status)
|
||||
.WithOkColor()
|
||||
.WithDescription(str);
|
||||
}, allShardStrings.Length / 25);
|
||||
}, allShardStrings.Length, 25);
|
||||
}
|
||||
|
||||
[NadekoCommand, Usage, Description, Aliases]
|
||||
|
@ -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]
|
||||
|
@ -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]
|
||||
|
Reference in New Issue
Block a user