Skip to content

Commit edb4951

Browse files
authored
dispatch
1 parent 61a1433 commit edb4951

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord/ui/modal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ def remove_modal(self, modal: BaseModal, user_id):
489489
async def dispatch(self, user_id: int, custom_id: str, interaction: Interaction):
490490
key = (user_id, custom_id)
491491
modal = self._modals.get(key)
492-
if value is None:
492+
if modal is None:
493493
return
494494
interaction.modal = modal
495495

0 commit comments

Comments
 (0)