DA344
2 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
2 deletions
-
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) |
|
|
|