Browse Source

fix: is_persistent in container.py

pull/10166/head
DA344 1 week ago
committed by GitHub
parent
commit
8e03c3a740
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      discord/ui/container.py

2
discord/ui/container.py

@ -212,7 +212,7 @@ class Container(Item[V]):
return bool(self.__dispatchable) return bool(self.__dispatchable)
def is_persistent(self) -> bool: def is_persistent(self) -> bool:
return self.is_dispatchable() and all(c.is_persistent() for c in self.children) return all(c.is_persistent() for c in self.children)
def __init_subclass__(cls) -> None: def __init_subclass__(cls) -> None:
super().__init_subclass__() super().__init_subclass__()

Loading…
Cancel
Save