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