Skip to content

Commit a7b56b5

Browse files
plun1331Copilot
andauthored
Update discord/ui/view.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: plun1331 <plun1331@gmail.com>
1 parent c3f0010 commit a7b56b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord/ui/view.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,9 @@ def remove_item(self, item: ViewItem[V] | int | str) -> Self:
262262

263263
def clear_items(self) -> Self:
264264
"""Removes all items from this view."""
265-
self.children.clear()
266265
for child in self.children:
267266
child.parent = None
267+
self.children.clear()
268268
return self
269269

270270
async def interaction_check(self, interaction: Interaction) -> bool:

0 commit comments

Comments
 (0)