Skip to content

Commit 1c5c862

Browse files
committed
attempt to fix cancel method
1 parent b839a3e commit 1c5c862

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

discord/ext/pages/pagination.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,9 @@ async def cancel(
419419
The page content to show after canceling the paginator.
420420
"""
421421
for item in self.children:
422-
if item not in self.custom_view_items or include_custom:
422+
if include_custom:
423+
self.clear_items()
424+
elif item not in self.custom_view_items:
423425
self.remove_item(item)
424426
await self.message.edit(
425427
content=page if isinstance(page, str) else None,

0 commit comments

Comments
 (0)