Skip to content

Commit

Permalink
rename stop method to disable to avoid subclassing View method
Browse files Browse the repository at this point in the history
  • Loading branch information
krittick committed Jan 30, 2022
1 parent fb79fe7 commit 132cd05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discord/ext/pages/pagination.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ async def on_timeout(self) -> None:
item.disabled = True
await self.message.edit(view=self)

async def stop(self) -> None:
async def disable(self) -> None:
"""Stops the paginator, disabling all of its components. Does not disable components added via custom views."""
for item in self.children:
if isinstance(item, (PaginatorButton, PaginatorMenu)):
Expand Down

0 comments on commit 132cd05

Please sign in to comment.