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).");
 | 
					                                    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;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user