Skip to content

Commit c8c2b1e

Browse files
authored
Merge pull request #604 from HyperGH/patch-1
Update menu to pages in example
2 parents 79883bd + ea6b981 commit c8c2b1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/ext/pages/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Example usage in a cog:
3636
async def pagetest(self, ctx):
3737
await ctx.defer()
3838
# initializing the paginator
39-
paginator = menus.Paginator(pages=self.get_pages(), show_disabled=False, show_indicator=True)
39+
paginator = pages.Paginator(pages=self.get_pages(), show_disabled=False, show_indicator=True)
4040
4141
# customising buttons
4242
paginator.customize_button("next", button_label=">", button_style=discord.ButtonStyle.green)
@@ -59,7 +59,7 @@ Example usage in a cog:
5959
options=[discord.SelectOption(label="Example Option", value="Example Value", description="This menu does nothing!")],
6060
)
6161
)
62-
paginator = menus.Paginator(pages=self.get_pages(), show_disabled=False, show_indicator=True, custom_view=view)
62+
paginator = pages.Paginator(pages=self.get_pages(), show_disabled=False, show_indicator=True, custom_view=view)
6363
await paginator.send(ctx, ephemeral=False)
6464
6565

0 commit comments

Comments
 (0)