Browse Source

if

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

3
discord/ui/container.py

@ -184,8 +184,7 @@ class Container(Item[V]):
if item.accessory.is_dispatchable(): # type: ignore
if item.accessory._provided_custom_id is False: # type: ignore
item.accessory.custom_id = os.urandom(16).hex() # type: ignore
if getattr(item, '__discord_ui_section__', False) and item.accessory.is_dispatchable(): # type: ignore
self.__dispatchable.append(item.accessory) # type: ignore
self.__dispatchable.append(item.accessory) # type: ignore
setattr(self, name, item)
children.append(item)

Loading…
Cancel
Save