From 0166c6f6cf31dd38c793bfeca59681cbe3527467 Mon Sep 17 00:00:00 2001 From: Soheab_ <33902984+Soheab@users.noreply.github.com> Date: Tue, 16 Sep 2025 14:42:35 +0200 Subject: [PATCH] Ensure resolved cannot be None Co-Authored-By: Sacul <183588943+Sacul0457@users.noreply.github.com> --- discord/ui/modal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/ui/modal.py b/discord/ui/modal.py index 6d52b8816..dfe4d265b 100644 --- a/discord/ui/modal.py +++ b/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