Skip to content

Commit ef9b598

Browse files
krittickLulalaby
authored andcommitted
fix missing current_page assignment, indicator update in goto_page
1 parent 19037ce commit ef9b598

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

discord/ext/pages/pagination.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,12 @@ async def goto_page(self, page_number=0) -> discord.Message:
380380
The message associated with the paginator.
381381
"""
382382
self.update_buttons()
383+
self.current_page = page_number
384+
if self.show_indicator:
385+
self.buttons["page_indicator"][
386+
"object"
387+
].label = f"{self.current_page + 1}/{self.page_count + 1}"
388+
383389
page = self.pages[page_number]
384390
page = self.get_page_content(page)
385391

0 commit comments

Comments
 (0)