From 940e239521567f7e10bf277564e43d0bc25dc82f Mon Sep 17 00:00:00 2001 From: ToxicKidz <78174417+ToxicKidz@users.noreply.github.com> Date: Wed, 31 Mar 2021 10:52:09 -0400 Subject: [PATCH 1/2] Show page before starting the menu --- discord/ext/menus/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/discord/ext/menus/__init__.py b/discord/ext/menus/__init__.py index ebae3fe3..06fc8a8f 100644 --- a/discord/ext/menus/__init__.py +++ b/discord/ext/menus/__init__.py @@ -964,6 +964,8 @@ async def send_initial_message(self, ctx, channel): async def start(self, ctx, *, channel=None, wait=False): await self._source._prepare_once() + if self.message is not None: + await self.show_page(0) await super().start(ctx, channel=channel, wait=wait) async def show_checked_page(self, page_number): From 6886427178ad5573e4fc81d60d0dde5b4ce9139f Mon Sep 17 00:00:00 2001 From: ToxicKidz <78174417+ToxicKidz@users.noreply.github.com> Date: Wed, 31 Mar 2021 16:10:11 -0400 Subject: [PATCH 2/2] Use Menupages.show_current_page instead Co-authored-by: Riley Shaw <30989490+ShineyDev@users.noreply.github.com> --- discord/ext/menus/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/ext/menus/__init__.py b/discord/ext/menus/__init__.py index 06fc8a8f..e42cf114 100644 --- a/discord/ext/menus/__init__.py +++ b/discord/ext/menus/__init__.py @@ -965,7 +965,7 @@ async def send_initial_message(self, ctx, channel): async def start(self, ctx, *, channel=None, wait=False): await self._source._prepare_once() if self.message is not None: - await self.show_page(0) + await self.show_current_page() await super().start(ctx, channel=channel, wait=wait) async def show_checked_page(self, page_number):