Skip to content

Commit

Permalink
Update discord/ui/view.py
Browse files Browse the repository at this point in the history
Co-authored-by: plun1331 <49261529+plun1331@users.noreply.github.com>
  • Loading branch information
Lulalaby and plun1331 committed Apr 28, 2022
1 parent 667a9e1 commit 58a8827
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discord/ui/view.py
Expand Up @@ -475,7 +475,7 @@ def disable_all_items(self, *, exclusions: Optional[List[Item]] = None) -> None:
A list of items in `self.children` to not disable from the view.
"""
for child in self.children:
if child not in exclusions:
if exclusions is None or child not in exclusions:
child.disabled = True


Expand Down

0 comments on commit 58a8827

Please sign in to comment.