mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-11 20:35:26 +00:00
Add missing underscore in Modal refresh method
This commit is contained in:
parent
934ab4151a
commit
3fd8f76c61
@ -174,7 +174,7 @@ class Modal(View):
|
|||||||
def _refresh(self, components: Sequence[ModalSubmitComponentInteractionDataPayload]) -> None:
|
def _refresh(self, components: Sequence[ModalSubmitComponentInteractionDataPayload]) -> None:
|
||||||
for component in components:
|
for component in components:
|
||||||
if component['type'] == 1:
|
if component['type'] == 1:
|
||||||
self.refresh(component['components'])
|
self._refresh(component['components'])
|
||||||
else:
|
else:
|
||||||
item = find(lambda i: i.custom_id == component['custom_id'], self.children) # type: ignore
|
item = find(lambda i: i.custom_id == component['custom_id'], self.children) # type: ignore
|
||||||
if item is None:
|
if item is None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user