Browse Source
fix: Section.accessory not being dispatched
pull/10166/head
DA344
3 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
3 additions and
0 deletions
-
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 |
|
|
|