From 29a87f42342f2845d90d39e1baffbbfb7cc95b08 Mon Sep 17 00:00:00 2001 From: Sakimori Date: Sat, 26 Dec 2020 20:11:05 -0500 Subject: [PATCH] fixed the teams search list out of range error with a single "-1" --- the_prestige.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/the_prestige.py b/the_prestige.py index 2b8ebb0..13d2ace 100644 --- a/the_prestige.py +++ b/the_prestige.py @@ -597,7 +597,7 @@ async def team_pages(msg, all_teams, search_term=None): react, user = await client.wait_for('reaction_add', timeout=60.0, check=react_check) if react.emoji == "◀" and current_page > 0: current_page -= 1 - elif react.emoji == "▶" and current_page < page_max: + elif react.emoji == "▶" and current_page < (page_max-1): current_page += 1 await teams_list.edit(embed=pages[current_page]) except asyncio.TimeoutError: