We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
stop
1 parent 572020c commit fb79fe7Copy full SHA for fb79fe7
discord/ext/pages/pagination.py
@@ -379,6 +379,13 @@ async def on_timeout(self) -> None:
379
item.disabled = True
380
await self.message.edit(view=self)
381
382
+ async def stop(self) -> None:
383
+ """Stops the paginator, disabling all of its components. Does not disable components added via custom views."""
384
+ for item in self.children:
385
+ if isinstance(item, (PaginatorButton, PaginatorMenu)):
386
+ item.disabled = True
387
+ await self.message.edit(view=self)
388
+
389
async def goto_page(self, page_number=0) -> discord.Message:
390
"""Updates the paginator message to show the specified page number.
391
0 commit comments