Add missing underscore in Modal refresh method

This commit is contained in:
Narmy 2022-03-15 02:00:39 +01:00 committed by GitHub
parent 934ab4151a
commit 3fd8f76c61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -174,7 +174,7 @@ class Modal(View):
def _refresh(self, components: Sequence[ModalSubmitComponentInteractionDataPayload]) -> None:
for component in components:
if component['type'] == 1:
self.refresh(component['components'])
self._refresh(component['components'])
else:
item = find(lambda i: i.custom_id == component['custom_id'], self.children) # type: ignore
if item is None: