Skip to content

Commit

Permalink
Need to zero-index this value
Browse files Browse the repository at this point in the history
  • Loading branch information
Gorialis committed Apr 27, 2022
1 parent 3d70b14 commit f24f95f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jishaku/shim/paginator_200.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ def __init__(self, interface: 'PaginatorInterface', *args, **kwargs):

async def on_submit(self, interaction: discord.Interaction):
try:
self.interface.display_page = int(self.page_number.value)
self.interface.display_page = int(self.page_number.value) - 1
except ValueError:
await interaction.response.send_message(
content=f"``{self.page_number.value}`` could not be converted to a page number"
Expand Down

0 comments on commit f24f95f

Please sign in to comment.