Browse Source

fix: Section.accessory not being dispatched

pull/10166/head
DA344 3 months ago
committed by GitHub
parent
commit
9655749ae3
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      discord/ui/view.py

3
discord/ui/view.py

@ -844,6 +844,9 @@ class ViewStore:
)
or is_fully_dynamic
)
elif getattr(item, '__discord_ui_section__', False):
accessory = item.accessory. # type: ignore
dispatch_info[(accessory.type.value, accessory.custom_id)] = accessory # type: ignore
else:
dispatch_info[(item.type.value, item.custom_id)] = item # type: ignore
is_fully_dynamic = False

Loading…
Cancel
Save