Skip to content

Commit

Permalink
Update tools.py
Browse files Browse the repository at this point in the history
  • Loading branch information
7bitlyrus authored Jun 27, 2024
1 parent f94a085 commit c991afd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -796,8 +796,8 @@ async def regress_page(self, interaction: discord.Interaction):
if self.current_page - 1 <= 1:
self.children[0].disabled = True

if self.children[2].disabled:
self.children[2].disabled = False
if self.children[1].disabled:
self.children[1].disabled = False

self.current_page -= 1
await self.process_response(self.generate_new_embed(), interaction=interaction, button_interact=True)
Expand All @@ -817,7 +817,7 @@ async def end_pagination(self, interaction: discord.Interaction | None):

async def progress_page(self, interaction: discord.Interaction):
if self.current_page + 1 >= len(self.pages):
self.children[2].disabled = True
self.children[1].disabled = True

if self.children[0].disabled:
self.children[0].disabled = False
Expand Down

0 comments on commit c991afd

Please sign in to comment.