Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various Paginator fixes for disable(), cancel(), and respond methods. #1088

Merged
merged 9 commits into from
Mar 3, 2022
Prev Previous commit
Next Next commit
apply fix for #1082 to cancel() method as well
  • Loading branch information
krittick authored and Pycord Automated Linter committed Feb 27, 2022
commit 0773974d8831ffb46111328cd0d004f73af9a147
4 changes: 1 addition & 3 deletions discord/ext/pages/pagination.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,9 +402,7 @@ async def cancel(
items = self.children.copy()
page = self.get_page_content(page)
for item in items:
if self.custom_view and (
item not in self.custom_view.children or include_custom
):
if self.custom_view and (item not in self.custom_view.children or include_custom):
self.remove_item(item)
if page:
await self.message.edit(
Expand Down