Skip to content

Commit eb981d3

Browse files
authored
[ext-pages] Fix for specifying an initial page before sending the paginator (#859)
1 parent c4288a0 commit eb981d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

discord/ext/pages/pagination.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ async def send(
604604
raise TypeError(f"expected abc.Messageable not {target.__class__!r}")
605605

606606
self.update_buttons()
607-
page = self.pages[0]
607+
page = self.pages[self.current_page]
608608
page = self.get_page_content(page)
609609

610610
self.user = ctx.author
@@ -657,7 +657,7 @@ async def respond(
657657

658658
self.update_buttons()
659659

660-
page = self.pages[0]
660+
page = self.pages[self.current_page]
661661
page = self.get_page_content(page)
662662

663663
self.user = interaction.user

0 commit comments

Comments
 (0)