Browse Source

fix: Non-dispatchable items breaking persistent views

pull/10166/head
DA-344 1 month ago
parent
commit
aa41094cc1
  1. 4
      discord/ui/item.py

4
discord/ui/item.py

@ -112,7 +112,9 @@ class Item(Generic[V]):
return False
def is_persistent(self) -> bool:
return self._provided_custom_id
if self.is_dispatchable():
return self._provided_custom_id
return True
def __repr__(self) -> str:
attrs = ' '.join(f'{key}={getattr(self, key)!r}' for key in self.__item_repr_attributes__)

Loading…
Cancel
Save