fix: off-by-one error in switching list pages
This commit is contained in:
parent
d19f6456a7
commit
be443caccf
@ -146,7 +146,7 @@ namespace PluralKit.Bot
|
|||||||
await ctx.Reply($"{Emojis.Error} Operation canceled (invalid number).");
|
await ctx.Reply($"{Emojis.Error} Operation canceled (invalid number).");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (repliedNum >= pageCount)
|
if (repliedNum > pageCount)
|
||||||
{
|
{
|
||||||
await ctx.Reply($"{Emojis.Error} That page number is too high (page count is {pageCount}).");
|
await ctx.Reply($"{Emojis.Error} That page number is too high (page count is {pageCount}).");
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user