fixed the teams search list out of range error with a single "-1"
This commit is contained in:
parent
84e2bccb75
commit
29a87f4234
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user