Skip to content

Commit cd67be9

Browse files
krittickLulalaby
authored andcommitted
fix update() example
1 parent fc5556f commit cd67be9

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

docs/ext/pages/index.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,7 @@ Example usage in a cog:
227227
paginator = pages.Paginator(pages=self.get_pages(), show_disabled=False)
228228
await paginator.respond(ctx.interaction)
229229
await asyncio.sleep(3)
230-
await paginator.update(
231-
ctx.interaction, show_disabled=True, show_indicator=False
232-
)
230+
await paginator.update(show_disabled=True, show_indicator=False)
233231
234232
@pagetest.command(name="target")
235233
async def pagetest_target(self, ctx: discord.ApplicationContext):

examples/views/paginator.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,7 @@ async def pagetest_update(self, ctx: discord.ApplicationContext):
216216
paginator = pages.Paginator(pages=self.get_pages(), show_disabled=False)
217217
await paginator.respond(ctx.interaction)
218218
await asyncio.sleep(3)
219-
await paginator.update(
220-
ctx.interaction, show_disabled=True, show_indicator=False
221-
)
219+
await paginator.update(show_disabled=True, show_indicator=False)
222220

223221
@pagetest.command(name="target")
224222
async def pagetest_target(self, ctx: discord.ApplicationContext):

0 commit comments

Comments
 (0)