Browse Source

Ensure resolved cannot be None

Co-Authored-By: Sacul <[email protected]>
pull/10302/head
Soheab_ 1 month ago
parent
commit
0166c6f6cf
  1. 2
      discord/ui/modal.py

2
discord/ui/modal.py

@ -200,7 +200,7 @@ class Modal(BaseView):
# resolved items for selects are sent at once in the modal submit payload
if component['type'] in (5, 6, 7, 8):
component['resolved'] = resolved # type: ignore
component['resolved'] = resolved or {} # type: ignore
item._refresh_state(interaction, component) # type: ignore

Loading…
Cancel
Save